From patchwork Thu Nov 2 01:29:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 740344 Delivered-To: patch@linaro.org Received: by 2002:a5d:538f:0:b0:32d:baff:b0ca with SMTP id d15csp593680wrv; Wed, 1 Nov 2023 18:32:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtd5DVE/N0FZ0xKOv58+XG0ERxTLWpye75UXbyqtWJjHvCpTyxN/rD5PIUxOOasTV4yE94 X-Received: by 2002:a05:620a:51d2:b0:767:e993:5702 with SMTP id cx18-20020a05620a51d200b00767e9935702mr16365076qkb.35.1698888758390; Wed, 01 Nov 2023 18:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698888758; cv=none; d=google.com; s=arc-20160816; b=qlNfZvgUHWRscUrBH4TbCpA3poNisaWqmVOzSwuih/hHAGu76sIfveBS0glRRuyrs1 Rs8UHcONcgrYT6geKK1qVvBfN+cU6dENM7YgQ3ezje6ye0meM7czLiGB44ZoWs3U0bEd aOvVL0pLc/KrQ5SwvUasMTyiDN8ixNvzZbqQY1Bpr8s91CYkqLeGiSJ5TMMXC0j34VaI I/JYBL1hQkPLrgjPkSz+yeOAqXrSCQUC4VfwidUuvS/7Ii8GQFSURJdiSqokktnppajU E8MCrFnjpwrzSZEIInO78QxGY8t1iUiIHTp1S5WsLrhqNHGVTpKeVQNgeiCzHPRT8ZMc /EFQ== 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=nte4AsF0yU49KoFZ5WsKrCyyvXp9Hm4i6B93/Stt4MI=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=1FISHpFjOluO9I4nELOb0YhvOITkOIEA1cs2Gc0cLYFuPTT1Ie7RmgHTCz45BvD5hu +FA+1ygYBTXGzh7Q+XXtWAQMzTlfI8eEEtzi2l0By8SSyV+AYRhIyB+xIvLvRD4qxaqd Dz4cG6MvXRNLUC6paMwHpkfgvVpenyrzVqkp+7WsyDPtjdBxelpxmSgnAN4+81zUKHq4 94jkyw/kigjtIaNvZ+iFQ+r4x2PegHBywB+y3/Y4YDZNpuhFpXTsJ7BE+oRq1r+HfygR QbJd1MVzo+yJEhyTYRoUctfZtkTGMLpuWYmQY4eKhLsG+iJFl10J3iVpo08QIoYig/Bk FaJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t74CW5XJ; 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 dl6-20020a05620a1d0600b00773a23eb2a8si3601956qkb.671.2023.11.01.18.32.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Nov 2023 18:32:38 -0700 (PDT) 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=t74CW5XJ; 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 1qyMYP-0005ww-6j; Wed, 01 Nov 2023 21:31:25 -0400 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 1qyMXq-0005nB-QH for qemu-devel@nongnu.org; Wed, 01 Nov 2023 21:30:50 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qyMXm-0001d4-2P for qemu-devel@nongnu.org; Wed, 01 Nov 2023 21:30:50 -0400 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6b7f0170d7bso500238b3a.2 for ; Wed, 01 Nov 2023 18:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698888644; x=1699493444; 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=nte4AsF0yU49KoFZ5WsKrCyyvXp9Hm4i6B93/Stt4MI=; b=t74CW5XJVVNILjGbhgKul5NCO117c2wmycQ2xuO5E1Qy3ksV8FwjyphQ1N9yqBuuN6 Ms1A8TrIkN3ZdVnUt8JQEzwOulRS9D4hp9KpAbdOSuewXINwQeEcQde6CY/fmsEd9ZNs 0Dz2ZeI412uA49SBvnMHcA3J6D3dPfaA3/GcNyrzFWyTWbVEATbQ1S12ynlT5ndkBATm ts4bH/N6+5CVbTe+Bv5RRMQAW+qxvtTn1sR7Sll84+SZ8vG8u+jWwESsPrdqmb8NIeGt 3AQJlv7ynMgoPlh3WsFyNfYualJlVe04fPbwri+8GfbKpa5gM18EBjUbMM6DwpsfvCCe cafw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698888644; x=1699493444; 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=nte4AsF0yU49KoFZ5WsKrCyyvXp9Hm4i6B93/Stt4MI=; b=QR7tq+4lg9EHXXh7xblF1H1KnvjkwQQ6NI58Nbh3idFKd+rO272ayIa2E4LOr1pGJ9 fzA+cjSBvaPtspMvcOb8OmtniyVjgtuMX2rStkmkkvoFtfzoP50Vm2VyYJOz2lyVdDdb oQHPSsUbpa/icRhf0OynxJg+NA95goncTWbDjbXSUhgiCi/W5j8kPADZBgxjzlyic9Xx zrw2nCmwTxTKoMvsduOhX641VcJ/cs6BKIkyn3KI3kxBt1u5lUx6ImwW4yNpgAmFQkeQ UFC+Q7kbaKr9PEk6jA5q337Z34Dy1vr1sSLQkc5VrfnMyXrXT/x5PztC/y3Vs0fp7cOa cG3Q== X-Gm-Message-State: AOJu0Yypo7R23yPD/uPqqB/9GMUYlW30Q1/dn2NeoyGVXnUg34MDFG6q 4saM1fMqVsBuV5GIkTI9SnCIyvjvJA/+25K09Es= X-Received: by 2002:a05:6a00:856:b0:6be:23dd:d62c with SMTP id q22-20020a056a00085600b006be23ddd62cmr21950112pfk.2.1698888644583; Wed, 01 Nov 2023 18:30:44 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id r23-20020aa78457000000b006979f70fdd5sm1784191pfn.219.2023.11.01.18.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 18:30:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH v3 29/88] target/hppa: Use copy_iaoq_entry for link in do_ibranch Date: Wed, 1 Nov 2023 18:29:17 -0700 Message-Id: <20231102013016.369010-30-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231102013016.369010-1-richard.henderson@linaro.org> References: <20231102013016.369010-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42f.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, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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 We need to make sure the link is masked properly along the use_nullify_skip path. The other three settings of a link register already use this. Signed-off-by: Richard Henderson --- target/hppa/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 348fdb75e5..c2db2782f4 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -1898,7 +1898,7 @@ static bool do_ibranch(DisasContext *ctx, TCGv_reg dest, nullify_over(ctx); if (link != 0) { - tcg_gen_movi_reg(cpu_gr[link], ctx->iaoq_n); + copy_iaoq_entry(ctx, cpu_gr[link], ctx->iaoq_n, ctx->iaoq_n_var); } tcg_gen_lookup_and_goto_ptr(); return nullify_end(ctx);