From patchwork Wed Dec 15 10:40:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 524260 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp238067imb; Wed, 15 Dec 2021 03:22:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyz/OVL5YBba3QVawlM6Cwias1AfdmNNCJclNvD8C7Q+1OsTtWakiX7JMopvAbA+I9M+3th X-Received: by 2002:a25:42cb:: with SMTP id p194mr5410296yba.134.1639567332769; Wed, 15 Dec 2021 03:22:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639567332; cv=none; d=google.com; s=arc-20160816; b=PvYqiUZugc6w1gJg40M1Nb3PGCvg31QI349XX7DTHKQvbnNrKQVbW2VpNIB8lkke4F CrGy6Y19ik2FPkVbpEuhGAQY1U14lForWo9dFj7sf6D4n0q3ofHSiR7zNwRhZv9drL7i rwnPkjLQRu1fCyTleEEF1vr1s5gz/wYw3NQQ2M74da90pXRRE1cw/Jcy3AqwHxVnxpSN Bp2ryAuPPJBh/nYWKk69/oROgp10uvoIgTc1yXebLI2TXH0Pfad7OoCdjnibclzXB+Oi jTC37UYkj5TJTq4OfPXImtAIRDKPEtOMdhYtoSEe0jmPj9f6oINsnUYdNlMrf+0CFYoA dtWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=dUOHsQLorVT3Jc1OzDLRWuNIwMw2lM0/Ici6Robi+sY=; b=z1F50hJ79M5TIfcrArjeRLQoVIW9QUSv6dttMtuQls49W78Hv9uNkET6I4NHnUupwt jPNfFAROXYgczlQ2s7/pIyTtOP/y67Jd0iR3ihbQU/aBBo7VOqFVPr4iyn63NDvkxP1C 2OYdsSD/2RfPRiRlSMd6P/DIOvhY/MxSYLGxX2jUd31rLFOVCGN/yQGYa6SKhvJSL7Px DBe/LrHska80/C7sNHLo+UuJmyKT2i5j1sQFE/d0/OC/uTc1iWquowmxJDOtkMVnOBGM AYLHJs48K4iYIfhnaazlzt+SAGr92WIRN2WQfwigqsz2JhtDEKzMIM9HNgNvTmNohdRB AoIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XwUf2hd9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m6si2016489ybo.756.2021.12.15.03.22.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Dec 2021 03:22:12 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XwUf2hd9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxSMO-0002og-6e for patch@linaro.org; Wed, 15 Dec 2021 06:22:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxRib-0006xD-W5 for qemu-devel@nongnu.org; Wed, 15 Dec 2021 05:41:06 -0500 Received: from [2a00:1450:4864:20::435] (port=40637 helo=mail-wr1-x435.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxRiX-0008QH-QQ for qemu-devel@nongnu.org; Wed, 15 Dec 2021 05:41:05 -0500 Received: by mail-wr1-x435.google.com with SMTP id t9so37375733wrx.7 for ; Wed, 15 Dec 2021 02:40:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=dUOHsQLorVT3Jc1OzDLRWuNIwMw2lM0/Ici6Robi+sY=; b=XwUf2hd9EaPm50lM6yWjWxUea2gKO/cF4YUkdgswCtnxzmLpngyok+Ny5hqw6cntBF Lt2K/fC1tNAyujCoFwdj5lkNHboV74ju3SdTOWZ7R/lJQ0DmlXBICznttRhNBICwGjBe yHq3g6H+uOpMHHNsju2cXfBOcLsG/y2lAE8ZFKETZ856jZTyPzc/6PhNdl3oEHoqTo5G 62c2wn09qWkYs1eqTF7FXga56hK0+n0ARzF5xCAl7pktm3oHqH1sfDIZYI7xMK7cR/lF jJVffSTcc0otyHcGS1cXtQLAQHbyJr3M8n86tWyT8qltEBBKQDLRFuAYN2y38Z80FTHO iKSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dUOHsQLorVT3Jc1OzDLRWuNIwMw2lM0/Ici6Robi+sY=; b=MBEvah7fhSDeftiflO+veriAl/9XeieIHHp/GfPDSldKovrv45oYkT55vmAGCaxCUk XCfCQBWl+61FTh3GDtLOWOIE1UmH1jW7Vog9GtPgUrPBvvi8FoADGvqB7uelkcwJ2YWA +F5bBOYEeWw+w+Cr6CFgBPloXUZ1uUPaeEl1GEhzBo7LXaSLYY3kXTOdKBPST+/eyqLM YBOE2BVfeVTr6kVJL1q21CvvGuawIZyiavoFS3SvGXeG5tMDyjSMH6PToDXViNohyeYt Q2CWl7RNSEi6Y8rcDsjKodzCZtJPrfrmb5FI6sSxKakGkguBRjBPfWwADNeDPUq8AfEU vuhg== X-Gm-Message-State: AOAM533mgDSPuM9ZIA3wf92p8nvYjxs5p4/pGcnqY5O9j6Ki6Zm6b2rr kUhgpGJB/YuuPWOlNw7mtDgiSofVh26mWA== X-Received: by 2002:adf:b1cc:: with SMTP id r12mr2745780wra.385.1639564856065; Wed, 15 Dec 2021 02:40:56 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id e18sm1600815wrs.48.2021.12.15.02.40.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 02:40:55 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 09/33] target/arm: Hoist pc_next to a local variable in aarch64_tr_translate_insn Date: Wed, 15 Dec 2021 10:40:25 +0000 Message-Id: <20211215104049.2030475-10-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211215104049.2030475-1-peter.maydell@linaro.org> References: <20211215104049.2030475-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::435 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/translate-a64.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index cec672f2296..9c4258ccac2 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -14750,6 +14750,7 @@ static void aarch64_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu) { DisasContext *s = container_of(dcbase, DisasContext, base); CPUARMState *env = cpu->env_ptr; + uint64_t pc = s->base.pc_next; uint32_t insn; if (s->ss_active && !s->pstate_ss) { @@ -14769,10 +14770,10 @@ static void aarch64_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu) return; } - s->pc_curr = s->base.pc_next; - insn = arm_ldl_code(env, &s->base, s->base.pc_next, s->sctlr_b); + s->pc_curr = pc; + insn = arm_ldl_code(env, &s->base, pc, s->sctlr_b); s->insn = insn; - s->base.pc_next += 4; + s->base.pc_next = pc + 4; s->fp_access_checked = false; s->sve_access_checked = false;