From patchwork Tue Jun 30 16:46:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksandar Markovic X-Patchwork-Id: 11634401 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 309A16C1 for ; Tue, 30 Jun 2020 16:51:14 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0632B20722 for ; Tue, 30 Jun 2020 16:51:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JYtQqsqo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0632B20722 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:56000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqJTV-0002p6-9C for patchwork-qemu-devel@patchwork.kernel.org; Tue, 30 Jun 2020 12:51:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqJPh-0007HY-TO for qemu-devel@nongnu.org; Tue, 30 Jun 2020 12:47:19 -0400 Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644]:46184) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqJPe-0007z6-0n for qemu-devel@nongnu.org; Tue, 30 Jun 2020 12:47:17 -0400 Received: by mail-ej1-x644.google.com with SMTP id p20so21301751ejd.13 for ; Tue, 30 Jun 2020 09:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=haSXnoSPhrD17lX5ZndWujBCjWLu9wT1A4Vj0WAoOl4=; b=JYtQqsqooFHrOaEIe93LpGTq+BBiDtvar4jhcsiKaEATVqmrz1W1LJF65KbwIGQrzL YOpaTfvMHQoZhGD8oOQSSCpn86bPpvrDBYHsIjVXbgtTZ/Tj8aKXT5fPNt4Es+8AncCq oeUv7mvlHSTWE5zLzgw2ciXWXrJibEcKVhU/Zt9UXEZH2iSKQpoyPiSU9nLgZ/cHrzxo Pg7LukT0Tg3KsGSFCMAkLIismCptXFItXJvVqaQ74Kt4yjsmYmaSqQcGnYpsIFEBFgZ0 wrBkWDAv92I518ObPfqKcOXMCoZb0/87Jb4iywJwa/cY78zzouPpSSN3gtA/Lu3fje6E Neaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=haSXnoSPhrD17lX5ZndWujBCjWLu9wT1A4Vj0WAoOl4=; b=UuN6jPz0NhcI4elRTOtPakZ9MVC+6eP9HV4Gwyuxo8rFPnBm5R0fmfEiYB3cYsO26j Ck6yRsALgcqSs3/RG6wR4akWigPFMJOao4Hc+51fMpr4+GDEgeuzMcR2LuYuiM3ehMuS Qrt0dnpncbJbBIGjEbBq/FAf1NZRToBhQypidDzoSl6hF2bL29adffi80Zy0hkX46+5i PfCENf1xsDUyiNP+dpQPTwEIsr1LFqahtrAAgoByqhFdKu6yF7mxTw8Y4BQutg/Y2YFy 3X8HuMOitELe1MFp6ItL2hOGz5StfSW1siuGfRwe+uPCS7R7TonJRiUN3AgXw6vThyfu pQUg== X-Gm-Message-State: AOAM530nIaUjPSbL3loi7a1V714g7l/6XNx5KdC+udArV9OswGRj2f0y FkMauJXXn5N4vQU1AngSiOW+L6gF X-Google-Smtp-Source: ABdhPJyUNHj5luGIPMVXK9Xez4q31MLdzoDo7Q+Erdq4OsRHOBRUpgGOmMoOEr6lvPyYWPS3efh7Wg== X-Received: by 2002:a17:906:abc9:: with SMTP id kq9mr19376522ejb.493.1593535632601; Tue, 30 Jun 2020 09:47:12 -0700 (PDT) Received: from localhost.localdomain ([109.245.225.97]) by smtp.gmail.com with ESMTPSA id d26sm3233096edz.93.2020.06.30.09.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 09:47:12 -0700 (PDT) From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PATCH v2 1/2] target/mips: Remove identical if/else branches Date: Tue, 30 Jun 2020 18:46:51 +0200 Message-Id: <20200630164653.24880-2-aleksandar.qemu.devel@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200630164653.24880-1-aleksandar.qemu.devel@gmail.com> References: <20200630164653.24880-1-aleksandar.qemu.devel@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::644; envelope-from=aleksandar.qemu.devel@gmail.com; helo=mail-ej1-x644.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: aleksandar.rikalo@syrmia.com, Aleksandar Markovic Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Remove the segment: if (other_tc == other->current_tc) { tccause = other->CP0_Cause; } else { tccause = other->CP0_Cause; } Original contributor can't remember what was his intention. Bug: 1885718 Signed-off-by: Aleksandar Markovic --- target/mips/cp0_helper.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/target/mips/cp0_helper.c b/target/mips/cp0_helper.c index bbf12e4a97..de64add038 100644 --- a/target/mips/cp0_helper.c +++ b/target/mips/cp0_helper.c @@ -375,16 +375,9 @@ target_ulong helper_mftc0_entryhi(CPUMIPSState *env) target_ulong helper_mftc0_cause(CPUMIPSState *env) { int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); - int32_t tccause; CPUMIPSState *other = mips_cpu_map_tc(env, &other_tc); - if (other_tc == other->current_tc) { - tccause = other->CP0_Cause; - } else { - tccause = other->CP0_Cause; - } - - return tccause; + return other->CP0_Cause; } target_ulong helper_mftc0_status(CPUMIPSState *env) From patchwork Tue Jun 30 16:46:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aleksandar Markovic X-Patchwork-Id: 11634393 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 966CE6C1 for ; Tue, 30 Jun 2020 16:48:40 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6D092206B6 for ; Tue, 30 Jun 2020 16:48:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VftcJPlp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6D092206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:50950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqJR1-0000c6-Nk for patchwork-qemu-devel@patchwork.kernel.org; Tue, 30 Jun 2020 12:48:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqJPo-0007Ny-Qx for qemu-devel@nongnu.org; Tue, 30 Jun 2020 12:47:24 -0400 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]:34279) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqJPm-0007zl-9O for qemu-devel@nongnu.org; Tue, 30 Jun 2020 12:47:24 -0400 Received: by mail-ej1-x642.google.com with SMTP id y10so21368801eje.1 for ; Tue, 30 Jun 2020 09:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5Xny8L3l0VFSndMmYb2T1ad6LbQdW7hhdEvQurbhWF8=; b=VftcJPlpkpULIXiqv5v6vLtQeN5eMAdqOTFCEYnl4vc7xojZZQhe7l/+QlTiWS4SzG FQ7Wcv03nhLu1eRIbjTbrTj3Q86slJN3eIhB+v9vSTESkSnlNyZhHUXyYyh0K1Va/T+j SMZMgw0SamnUsmCqKBt/dLiAIU5FrMlRlEnl+k/R4NLuKiqGW+ASTmSjCOGtz1vRhT6X neB4DyYgA4CZwMIxMKiQab+knMp4f1VoCVANK9j43cLQvp2Yj01T4nzB/l1YYOTGWG5b P/U27YxNUcd4axrqB54efvQD1wVzbZXRLR5pdTEpmcYOuobv5ti+nNl64aJ3Na9H480B ZPAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5Xny8L3l0VFSndMmYb2T1ad6LbQdW7hhdEvQurbhWF8=; b=Fb5+wdAPUKdk4vVL64DomFBXuk+8zHT086mn3m2r3i5w8St2djAMl7yeAwe7MIepYh F40BA4yjn4QJ3nshhv/jTe0aXmvk37kA2eXDjye6BZax3oNPJuklUg7vCkV37WtLcuXw b6kbfdkhR5PvXlOZOnr1uLqOyftqw7QREsivn1wEtI69x58tsfZySZn5QuZI6zvQVSJM 6SasbbSu+LcfmxliGlkB4KHoR3H65LiebxWGnB2W6aHOWHJDPb4alBnN9GOvni6ce5eT sbGTrMoUzjlYV1Nn5EIfWWYrPv3mO3tiPFLi25hGI9eOdY2o51dQ5IJbYeRtI4W6KSCc bD6w== X-Gm-Message-State: AOAM531Qxs1O9ru4fL4KLvQxhrX0aYHyT5gFToxmSDXlUmLciS9tS4cU nShy+KgqaNOx4SzpstEs9Mww/IOI X-Google-Smtp-Source: ABdhPJwDQ73Axr9M5TLrtvxTSucU5+Y2n/5drNaus3J2wJaTBhjHy9novJy1Wgslxw/nNDyYX1+LcQ== X-Received: by 2002:a17:906:6ad8:: with SMTP id q24mr13942592ejs.223.1593535640985; Tue, 30 Jun 2020 09:47:20 -0700 (PDT) Received: from localhost.localdomain ([109.245.225.97]) by smtp.gmail.com with ESMTPSA id d26sm3233096edz.93.2020.06.30.09.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 09:47:20 -0700 (PDT) From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PATCH v2 2/2] MAINTAINERS: Adjust MIPS maintainership Date: Tue, 30 Jun 2020 18:46:52 +0200 Message-Id: <20200630164653.24880-3-aleksandar.qemu.devel@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200630164653.24880-1-aleksandar.qemu.devel@gmail.com> References: <20200630164653.24880-1-aleksandar.qemu.devel@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::642; envelope-from=aleksandar.qemu.devel@gmail.com; helo=mail-ej1-x642.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aurelien Jarno , aleksandar.rikalo@syrmia.com, Aleksandar Markovic , Paul Burton Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Paul Burton and Aurelien Jarno removed for not being present. Huacai Chen and Jiaxun Yang step in as new energy. CC: Paul Burton CC: Aurelien Jarno Signed-off-by: Aleksandar Markovic NAcked-by: Philippe Mathieu-Daudé --- MAINTAINERS | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5d8acf8d31..7fc16e21c9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -213,7 +213,8 @@ F: disas/microblaze.c MIPS TCG CPUs M: Aleksandar Markovic -R: Aurelien Jarno +M: Huacai Chen +R: Jiaxun Yang R: Aleksandar Rikalo S: Maintained F: target/mips/ @@ -377,6 +378,7 @@ F: target/arm/kvm.c MIPS KVM CPUs M: Aleksandar Markovic +M: Huacai Chen S: Odd Fixes F: target/mips/kvm.c @@ -1052,6 +1054,7 @@ MIPS Machines ------------- Jazz M: Hervé Poussineau +M: Huacai Chen R: Aleksandar Rikalo S: Maintained F: hw/mips/jazz.c @@ -1060,8 +1063,8 @@ F: hw/dma/rc4030.c Malta M: Aleksandar Markovic +M: Huacai Chen M: Philippe Mathieu-Daudé -R: Aurelien Jarno S: Maintained F: hw/isa/piix4.c F: hw/acpi/piix4.c @@ -1073,6 +1076,7 @@ F: tests/acceptance/machine_mips_malta.py Mipssim M: Aleksandar Markovic +M: Huacai Chen R: Aleksandar Rikalo S: Odd Fixes F: hw/mips/mipssim.c @@ -1080,7 +1084,6 @@ F: hw/net/mipsnet.c R4000 M: Aleksandar Markovic -R: Aurelien Jarno R: Aleksandar Rikalo S: Obsolete F: hw/mips/r4k.c @@ -1103,7 +1106,8 @@ S: Maintained F: hw/intc/loongson_liointc.c Boston -M: Paul Burton +M: Aleksandar Markovic +M: Huacai Chen R: Aleksandar Rikalo S: Maintained F: hw/core/loader-fit.c @@ -2677,7 +2681,8 @@ F: disas/i386.c MIPS TCG target M: Aleksandar Markovic -R: Aurelien Jarno +M: Huacai Chen +R: Jiaxun Yang R: Aleksandar Rikalo S: Maintained F: tcg/mips/