From patchwork Sun Nov 5 20:12:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 741048 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp793058wrr; Sun, 5 Nov 2023 12:13:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHITuEdF/XTPDTz7ohoU5aMFApcqoPGx9dFhGDAPfM9qRoQU65KlwX88XuEkwckmpRTRbU8 X-Received: by 2002:a05:622a:1a12:b0:418:16e0:f19e with SMTP id f18-20020a05622a1a1200b0041816e0f19emr32799498qtb.14.1699215218501; Sun, 05 Nov 2023 12:13:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699215218; cv=none; d=google.com; s=arc-20160816; b=EJHsBlTmFZ859/pAMp2oLPGQXQAz3BBV1SyQFYEYV8hrNiAehxl9Ds+60DKLk+B2Kn 4R9a0+TXfPhVVpQNXHCSUUkyZZXOpi5Ys4zqfuuY5BBNxOl4rnmwPYwZxtFLEoqEb2t0 PWMOjgMvL1/Af0hIRFpAvoUWC6mp8Fhrq2XahUwaeDLKPc4YJEGPdwft1M3KBXCPB/h0 CjnENZY+5L95f2qMEuDFapgrPu1IfMLzK3nz6L03RcDxgK/G4Dyv62sL/dRaz14rwc46 ISwkIVFZCIxoJHO1A4HmngJNBya3pdQyKguiynRWIcERcO5l1OXU9KJHlt4HD8uMVTXs Vqrg== 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:cc:to :from:dkim-signature; bh=e5NGkRly/imKlA1fWYWgSM7Jy/zMxKilvyVfLnp3U18=; fh=rYI8DiHAAFX3O5g969KmOAQ7d45Sb8OxQX1+DywGDk4=; b=SNzXwzIQ6JgcN1OrNdgMtLMhevsdwdv3kN6hmX0KSKDg6zXFm2Z6c2At/3EEPjaYjl ySUxK3Y6s76nINRVhJXFhrWlZm4tJDeEKVhjxLRE+FAGP4WJkckoYo0nZMVaOWOgt8zE iWJt3pd+9Nk0RzJy1M6+8rBe6Wns+AtKFJqjrGWhG1CjlKBWxX63uow6Y15Edu2klriY Fu/L8MlRsYPUcKe69YjMjKJNUXMXShKtGz5FfmtkfR0SOG48Wgsm0UCSH/3v823i8XI+ KvX/kVuIcoT8QBHPYrZqE0LXm4VAi13CrOUk/W1FEnqik1G+ZVi9T0Qhn4nQY71UgWub MDCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dBlWN6Q5; 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 g11-20020ac8580b000000b0041961b33c4esi4788515qtg.59.2023.11.05.12.13.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Nov 2023 12:13:38 -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=dBlWN6Q5; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzjU6-0003O1-TM; Sun, 05 Nov 2023 15:12:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qzjU5-0003Mi-2M for qemu-devel@nongnu.org; Sun, 05 Nov 2023 15:12:37 -0500 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzjU2-00029V-Iu for qemu-devel@nongnu.org; Sun, 05 Nov 2023 15:12:35 -0500 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6ce2b6b3cb6so2542110a34.3 for ; Sun, 05 Nov 2023 12:12:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699215153; x=1699819953; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=e5NGkRly/imKlA1fWYWgSM7Jy/zMxKilvyVfLnp3U18=; b=dBlWN6Q5SqxfFxjcvxdCHFdDRxzCwh/mtFNXriLSeF37+0BqB/qiV4J0rM9S+/+ewz G0R//R6hfR4IxVsnHwH8iFs1MgIgxu2QgsqeaxBLmsFIZ3Fq+FpdRh9cjir1C3O96rAX 3RUVIYQYsCgwx/NXxfC4yZEYBxFeQ70LmW36Fl9hFTvVr6DyhYudL39JJje1MgMrDHdt iq9zgHQWZcOT4fq5Q4KDqRJ3zmzf+WJvCqMmMCakJ3OY2VpYN994ZnUwqr4IpdxtaDrF YQNOJCoMPE04idJzqHCIQAxNnVftKZcnyXQMNFZrgSrANNgZInS2/aNnLu20oqKhv7N9 LZow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699215153; x=1699819953; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e5NGkRly/imKlA1fWYWgSM7Jy/zMxKilvyVfLnp3U18=; b=KV5HqH9Lf1NXUbmWUHWWyekTuhlb8ZMS2NlSSxuA0G2WgYsiAFJQFBwidmiFeFov1O hxI2Lz1Ad11IlzbmzhyGpRxf026xHDyNCPB7sy3G/fhqLkkmkK3EQ+btJM//ncZOSukG rOzsyCeS45f5k9+M1jpx1TzgCPwCPpyKszFaMHodZ/KlyX2HGwkz1jR3OuxVZejL3/ES RZ3jkNYilgfvJesjd2hfqYjRglG9yWsuPTOzx2giOXe3BD6s2fGwqCB3MAIg9qUHU+/J VwC6RQWU77Tkn6CFQHzCKCF+cqWZn0E1B8/ge2Ou/u23aQZfZ9ASaq9UXLu6EfjBsXxR +JHQ== X-Gm-Message-State: AOJu0Yz+c9CqZAdihvze+TN/Yb5qhOqOS0zxXtJCUGWYOuJGT8NM/ZLD 8mpQoDp+SzoqEo8h5o7np9Op+fEflzos3Sgsfkk= X-Received: by 2002:a05:6808:1822:b0:3b2:ef72:f59e with SMTP id bh34-20020a056808182200b003b2ef72f59emr31421493oib.24.1699215153423; Sun, 05 Nov 2023 12:12:33 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id u23-20020a056a00099700b006884549adc8sm4359777pfg.29.2023.11.05.12.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 12:12:33 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland Subject: [PULL 11/21] target/sparc: Always copy conditions into a new temporary Date: Sun, 5 Nov 2023 12:12:12 -0800 Message-Id: <20231105201222.202395-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231105201222.202395-1-richard.henderson@linaro.org> References: <20231105201222.202395-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::335; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x335.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-bounces+patch=linaro.org@nongnu.org This will allow the condition to live across changes to the global cc variables. Tested-by: Mark Cave-Ayland Acked-by: Mark Cave-Ayland Signed-off-by: Richard Henderson --- target/sparc/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/sparc/translate.c b/target/sparc/translate.c index a405512e6c..dd6d43d1f1 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -1226,8 +1226,9 @@ static const TCGCond gen_tcg_cond_reg[8] = { static void gen_compare_reg(DisasCompare *cmp, int cond, TCGv r_src) { cmp->cond = tcg_invert_cond(gen_tcg_cond_reg[cond]); - cmp->c1 = r_src; + cmp->c1 = tcg_temp_new(); cmp->c2 = 0; + tcg_gen_mov_tl(cmp->c1, r_src); } static void gen_op_clear_ieee_excp_and_FTT(void)