From patchwork Wed Jul 1 18:25:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksandar Markovic X-Patchwork-Id: 11637043 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 3F53D14B7 for ; Wed, 1 Jul 2020 18:27:28 +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 174082082F for ; Wed, 1 Jul 2020 18:27:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="j/CFa3Kl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 174082082F 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]:42070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqhSB-0002FB-Ci for patchwork-qemu-devel@patchwork.kernel.org; Wed, 01 Jul 2020 14:27:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqhR3-0000Wr-3a for qemu-devel@nongnu.org; Wed, 01 Jul 2020 14:26:17 -0400 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]:42143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqhR1-000490-AE for qemu-devel@nongnu.org; Wed, 01 Jul 2020 14:26:16 -0400 Received: by mail-ej1-x642.google.com with SMTP id i14so25999705ejr.9 for ; Wed, 01 Jul 2020 11:26:14 -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=ISobItiQwPLLri4ehEyKGuNT8uzTfaAOep/M1MYjmXg=; b=j/CFa3KlSvCTuh449hcpT6j3inUW5r5fnLyqihtw/PiLbZs3o6IfZRGK3WrtGlXESp 6tF5XNKeGAhlKQomGXql1A/92MPWZlsSi9GvH3kLtwAcebbFtEkCeDd81/L3umGGeSIp zNByGfItyBOmc+ckgyNue3vCOqwB37KDXVx30YFfQzd43On4xrqf4gbAvyYt5tyf+Gwv JQf0J/wflj/JewqXvzzFzChoSmF9pdFepgO8F4ITMwem7vjptS0XDe5Wp7g3cgagg9EP Am79CYCH59cRNtvwgyapura1vePaVWYIqV+4HMQBKq6RbltFXa/n9yr6NbqsIsGdC+kC +jvQ== 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=ISobItiQwPLLri4ehEyKGuNT8uzTfaAOep/M1MYjmXg=; b=oEvbwsLABxpil2F8xPyXbAUfauU6pv87ccRiQQUr2rrDquEiKXnTfTxs+Be4wJIz3Y 0BLXcH11KBdttyQz0/jflNCBDWcGsYAuVGL6ynVNwJc9Dwe0Gc+jehVwROoLLnI4MJCX HduQr4FMY+Pd586T9EAsHa0cjlGWkyCWml622OUaLC5w+JhTMeCBM4Fh27V248bvdR02 bz04IU7oEbdoOmCRe/IWqNfvukrx+dSCmw9gFk31MyIIAjrnzJ92MbI0rwEvNNLN9znb Jl9y27CYySE9M6bZoNdKjYfAw+4SKnsZPdUgKpqCTHhzxDnujJM7Mp8HZRwrC30QKHy/ 9Iag== X-Gm-Message-State: AOAM5320GBfwMI5iEsvJZ0mO5u60f1xI/v0Tnlj5yuOhfYswZG/jgrLK uVLN7UP5hhzWew6NatCL9YmmXEdk X-Google-Smtp-Source: ABdhPJxDG723Py/Mwg+ufKuOW6t4eeIuQGfWeAHI5bxHcW11wjau55WXyoS142RGK43qpChrebPOhQ== X-Received: by 2002:a17:906:90b:: with SMTP id i11mr23670247ejd.343.1593627973802; Wed, 01 Jul 2020 11:26:13 -0700 (PDT) Received: from localhost.localdomain ([109.245.225.97]) by smtp.gmail.com with ESMTPSA id y22sm4809333ejf.108.2020.07.01.11.26.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 11:26:13 -0700 (PDT) From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PATCH v3 1/2] target/mips: Remove identical if/else branches Date: Wed, 1 Jul 2020 20:25:57 +0200 Message-Id: <20200701182559.28841-2-aleksandar.qemu.devel@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200701182559.28841-1-aleksandar.qemu.devel@gmail.com> References: <20200701182559.28841-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: 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. Fixes: 5a25ce9487 ("mips: Hook in more reg accesses via mttr/mftr") Buglink: https://bugs.launchpad.net/qemu/+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 Wed Jul 1 18:25:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aleksandar Markovic X-Patchwork-Id: 11637045 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 9E9AD13B4 for ; Wed, 1 Jul 2020 18:27:32 +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 75EDF207F5 for ; Wed, 1 Jul 2020 18:27:32 +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="nhi0FCg7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75EDF207F5 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]:42252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqhSF-0002Jl-2b for patchwork-qemu-devel@patchwork.kernel.org; Wed, 01 Jul 2020 14:27:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqhR8-0000Yy-Ho for qemu-devel@nongnu.org; Wed, 01 Jul 2020 14:26:22 -0400 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]:40755) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqhR5-00049Q-Hx for qemu-devel@nongnu.org; Wed, 01 Jul 2020 14:26:22 -0400 Received: by mail-ej1-x642.google.com with SMTP id o18so21558235eje.7 for ; Wed, 01 Jul 2020 11:26:19 -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=/XnIS6XF5CC1zqf9zQ7/SX/fLjnbwp9fJEnkQPx0xiE=; b=nhi0FCg7VrIMZZMZ2pUN8TA0y6Mt+fDcjnNplIb2jgx8SYhnzKIPktozDzUmsYiKfY g/uKdCYKm8lvd3Hdg8ybAJjcUPfOb/uNyp5xoKoW6hLq8tSOU+sWSBZzSO06AczDwdLX 3YwIqCI00slzoLBjOBASqpAVrun0Uzat3oAUZUsb61sDej/TaGLEYMM8nl/0yve0IvAW pIb2zlhBQzvZbYxeUv3ztIFSdwzuQ2FbFNo9Q6g9dpysYVe80+b90GH3GcQhqZOrA4DQ Ww83wTkWDKXGDIxk10fkmxdjqFPALXKYJYvamLZ/oBSe8hQe+rCPMEErT3vW9OjmF4TS Dn9g== 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=/XnIS6XF5CC1zqf9zQ7/SX/fLjnbwp9fJEnkQPx0xiE=; b=GhH00tcCDI4WlEXuJ44JtfZdtjNILLA7tPOQRemOrAftvRyBvWoHE1hGdZniUC9+e4 eHnbChbmi2ib2h+4UlrDEXF0oMGddTLlCR+TIiBBV8o85vXVs2Vt+nFSMxOg3z97GpHj I4OEDUE/LOAy4LgLx7Dx82k656wLZpK4gNsfK31UnoG/Qnk9ekwh37TE9Eb79rHVoyJD 35QbkXffSqGOLmnBWLcsoUKefDRtScvGgb9obz0muPHG7aeUXMYlSOUz6UIxeK4LUiot PQtiAeADwt/Ox0+gPpRtsmmkmwnXINI3gzk45i2qhTZR071pnSHJz9Rx/beYGe+3GRCq Dfrw== X-Gm-Message-State: AOAM533m+fvxiqCdKVQ9zOKjcS3DKBeuw4eqVjjWDZDiNb65dE+jpbSW 23gtqn1OCMTVCw8cy7EKg+APFvJk X-Google-Smtp-Source: ABdhPJwPCeaziShSALaSc/EwzhiAy5S9+7i/hQGemULBJrfmeHPxnng7KJki7DZ4TM3bE6QX0wKlVA== X-Received: by 2002:a17:906:cd18:: with SMTP id oz24mr23790047ejb.118.1593627977654; Wed, 01 Jul 2020 11:26:17 -0700 (PDT) Received: from localhost.localdomain ([109.245.225.97]) by smtp.gmail.com with ESMTPSA id y22sm4809333ejf.108.2020.07.01.11.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 11:26:17 -0700 (PDT) From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PATCH v3 2/2] MAINTAINERS: Adjust MIPS maintainership Date: Wed, 1 Jul 2020 20:25:58 +0200 Message-Id: <20200701182559.28841-3-aleksandar.qemu.devel@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200701182559.28841-1-aleksandar.qemu.devel@gmail.com> References: <20200701182559.28841-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: aleksandar.rikalo@syrmia.com, Paul Burton , Aleksandar Markovic , Huacai Chen , Aurelien Jarno 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. A polite email was sent to them with question whether they intend to actively participate, but there was no response. In cases where needed, other persons step in instead. Huacai Chen and Jiaxun Yang step in as new energy. CC: Paul Burton CC: Aurelien Jarno CC: Huacai Chen CC: Jiaxun Yang Signed-off-by: Aleksandar Markovic --- MAINTAINERS | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5d8acf8d31..6f96c03f3e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -213,7 +213,8 @@ F: disas/microblaze.c MIPS TCG CPUs M: Aleksandar Markovic -R: Aurelien Jarno +R: 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 @@ -1061,7 +1063,6 @@ F: hw/dma/rc4030.c Malta M: Aleksandar Markovic M: Philippe Mathieu-Daudé -R: Aurelien Jarno S: Maintained F: hw/isa/piix4.c F: hw/acpi/piix4.c @@ -1080,7 +1081,6 @@ F: hw/net/mipsnet.c R4000 M: Aleksandar Markovic -R: Aurelien Jarno R: Aleksandar Rikalo S: Obsolete F: hw/mips/r4k.c @@ -1103,8 +1103,7 @@ S: Maintained F: hw/intc/loongson_liointc.c Boston -M: Paul Burton -R: Aleksandar Rikalo +M: Aleksandar Rikalo S: Maintained F: hw/core/loader-fit.c F: hw/mips/boston.c @@ -2677,7 +2676,7 @@ F: disas/i386.c MIPS TCG target M: Aleksandar Markovic -R: Aurelien Jarno +R: Jiaxun Yang R: Aleksandar Rikalo S: Maintained F: tcg/mips/