From patchwork Thu Mar 21 19:28:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 781593 Delivered-To: patch@linaro.org Received: by 2002:adf:cf01:0:b0:33e:7753:30bd with SMTP id o1csp1001758wrj; Thu, 21 Mar 2024 12:29:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUK4WNtuXqxYGOwsU5bUtuL2yI4sT4k6rFw6P5pCJhqcSMTApIkP6OdkN/gT2tCsIgjl98gaRNXHnocoNW0FIZH X-Google-Smtp-Source: AGHT+IGNFywjIUrCdwh35H3m6aL5Tzru2MoG4l6RrjnJGPUL5uEhBN1otHyZ9R+DUpTN/3GQcAH+ X-Received: by 2002:a25:854d:0:b0:dcd:4d:d342 with SMTP id f13-20020a25854d000000b00dcd004dd342mr126885ybn.50.1711049352930; Thu, 21 Mar 2024 12:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711049352; cv=none; d=google.com; s=arc-20160816; b=BOAI27sNq9U9nUJkNDyn0gcM41dZmlt80kcHkDQxkoHvdfHdYjncoXbkEgrGY1eQbL XffoW0u4wIXXO3in3oRaJMQMFhoqNuVGTJVnh9xapimtdIvwkqb0BTkhxdCk5TibYs7R ZSjSM8pe+mXlAOZo9b86etz1UqFV0rQbUrPAERAFwE70o/SnfA49q5H7JfQhLU8zdbgp Da126yThFHYosrGa20AdjXNUYaKjeIOKlivDXQVAYUSBZpLJatio02KoFqs7rJI4v1zW +7QsHJAh5/zWZzywb0GaAnJqwGMVE1cU0Y1wfqJlQjGRtY8tq6NG5axsugQOogUVgP+D AMsw== 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=kQVqrnpEFNAMTGSDkWy/XEPY0f16YIjRf/pXZgn4ChY=; fh=dgmN7IbtFJKfSCreYQjl4sATZXhd3Ko+AHTtMML3sVc=; b=rRT876a5SGuOGJq1oVG4WVw7gI7VHepoWjgajZaLGjugjvns0WY9QV3HLH93mREAiy pVpRStraP5Wi/ZLoiiIvhUKoFwheyXORwsTi84okvHV5vYPdpxFsODoZ/P9b6Sq0NL9F whURmQtTRGzbcv5/bV4rXmdBJfcBLXIG+fufUU2u9FSma+YPOg8opNEeL1wq/ibnewwz RzGEZkdz5KsdfEFLrHKDQJcdsw6vN8BsMQ1ZSbVQgKiScsGMIRtO8mJiGJVzXcaOJAik XKOzEpaJnOw1BDqZ4STsdSQLCDbjiPKhlh81wfF5j1dl2iiBYPEvYYMoTmSZ0BY5gyE8 qRBQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G+QKWRYB; 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 e4-20020a05622a110400b0043127fc26b0si413683qty.36.2024.03.21.12.29.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2024 12:29:12 -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=G+QKWRYB; 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 1rnO5S-0005I0-4T; Thu, 21 Mar 2024 15:28:26 -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 1rnO5M-0005Gw-PI for qemu-devel@nongnu.org; Thu, 21 Mar 2024 15:28:20 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rnO5L-0006nL-9b for qemu-devel@nongnu.org; Thu, 21 Mar 2024 15:28:20 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1dffa5e3f2dso8685315ad.2 for ; Thu, 21 Mar 2024 12:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711049298; x=1711654098; 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=kQVqrnpEFNAMTGSDkWy/XEPY0f16YIjRf/pXZgn4ChY=; b=G+QKWRYB/x9Y/G3i1Lw/r0+Yu6zJqJrqHChSm8ZuFOmL83q12Ic+QChB0FdlzEMEsD YgiAe4ubWzoQOpTltXrhFKWuQZNO6teISSFDyxZPCLoW38d2YgkSVjLcjDQ9v6hSKKUP u6lIxBq8akJYK+3cAYJZx0OLaJOCp3uQurFz5ueN759F0Vc9LGFRvAwHvgBJhBj3PJvP 2fF6tajJ3zD52YM0q6QPoht+9a0cyuoM1+kJT0pHPtITriGMCmDzYqQ5VlaaBDYFFmsm A1PU9pkMuZUTplaNLQa9BTJJeRJAp0P1gDxzRJQtJtyVU4vzNQOSwWH+62SilRN3+p6c 8UUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711049298; x=1711654098; 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=kQVqrnpEFNAMTGSDkWy/XEPY0f16YIjRf/pXZgn4ChY=; b=U8y0fp+ZKCzHr7ATsn4cDSIhE2pAdFp9UfPcPIPMZh2NCxKbNFgdN2afZ8iF/3O8Tg 21dQh6SWV9zp5VUqrVNye6TRAf5RiN+S0HzSs+dy3oBlb/CHFZ9DhqsVPD8qUhkw8gf2 B4e8XzueP22IGnWeJpBnXrIKTIeygr42XmB55yS5dKWmG+p1iQqYIPp2uBoSKr/Nn6T3 bYMAZJfYTMYamQD83bbPzIs28MQvgKACoMxAVvWggzzMSQmnIGKITKit+9hyLKA5x8tn rLcRsCEbjuWZVRFG5B3ijacQjuhQehhrsqxIV8MGnOdwqdBMiDKdzpkNjK9ynFGnbJYe UF9A== X-Gm-Message-State: AOJu0Ywr478KUsY+lj3j7RgwFneRgEVF6HBjPjDMu3kbbaI6KDwteLMy CZE0y25EunSRdreD9TnMCD9Lx1RfLZLKuEyj4I8Z6Q2l3DaiiJYrSEDmWhyn7AImFqeHAR9nOHF s X-Received: by 2002:a17:903:41c4:b0:1e0:294f:17d3 with SMTP id u4-20020a17090341c400b001e0294f17d3mr455931ple.5.1711049297771; Thu, 21 Mar 2024 12:28:17 -0700 (PDT) Received: from stoup.. (173-197-098-125.biz.spectrum.com. [173.197.98.125]) by smtp.gmail.com with ESMTPSA id p8-20020a1709027ec800b001e06c1eed85sm207303plb.141.2024.03.21.12.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 12:28:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de, svens@stackframe.org Subject: [PATCH 1/2] target/hppa: Fix BE,L set of sr0 Date: Thu, 21 Mar 2024 09:28:12 -1000 Message-Id: <20240321192813.371526-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240321192813.371526-1-richard.henderson@linaro.org> References: <20240321192813.371526-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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 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 The return address comes from IA*Q_Next, and IASQ_Next is always equal to IASQ_Back, not IASQ_Front. 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 19594f917e..1766a63001 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3817,7 +3817,7 @@ static bool trans_be(DisasContext *ctx, arg_be *a) load_spr(ctx, new_spc, a->sp); if (a->l) { copy_iaoq_entry(ctx, cpu_gr[31], ctx->iaoq_n, ctx->iaoq_n_var); - tcg_gen_mov_i64(cpu_sr[0], cpu_iasq_f); + tcg_gen_mov_i64(cpu_sr[0], cpu_iasq_b); } if (a->n && use_nullify_skip(ctx)) { copy_iaoq_entry(ctx, cpu_iaoq_f, -1, tmp); From patchwork Thu Mar 21 19:28:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 781592 Delivered-To: patch@linaro.org Received: by 2002:adf:cf01:0:b0:33e:7753:30bd with SMTP id o1csp1001751wrj; Thu, 21 Mar 2024 12:29:11 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWCh73KYWfa0JARZ1rgLCGsMuGXkMSYEqfbnwJmWJ6GG+HbgsRq5PnWOsZgQ2MYEyKeLC4RINHSFkI293eDjJpw X-Google-Smtp-Source: AGHT+IESbSyAjFIIf3oXrMeRmmNqfTj8bUAb975CbUADLMxDhNHRXo0PK6+FkLydis1dlcydFep5 X-Received: by 2002:a05:620a:56c3:b0:788:7817:3c15 with SMTP id wh3-20020a05620a56c300b0078878173c15mr145695qkn.6.1711049351318; Thu, 21 Mar 2024 12:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711049351; cv=none; d=google.com; s=arc-20160816; b=sc0x+vmaTrSydXsxYegkXGvKtDZeHV84EWPErgVkxH0k50L9M0zLwpUK9njnVToysj j12QuEsfkELxgsctSnenbLPwgQ1l6sv7IrpJszv6Vbjg9ikGGVT6QjxWAwW/k2n5Ul34 VKprOcsch9v2O4LvtRsa4D6AUwsOyRE+OPdP5mBJtKCZgolAkbCQwNO9dDxF3PpO6zWm kLcMGZ2zMjoskL+H1r1XEfTAuxXZB4tX0srkd3BZHhjQESLyN6tKhk79m5z8v1oJSIvI MUtS5PYqy6IqPD2PpgbnlCnkfdavLP8rkR1W2poeYxiGgGLarCl8r7a1K40g1yreeT8u 8e4A== 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=j3kLKwxrLH+M2Nw+NGqU18RKQy972773C7GhxsV0pgI=; fh=dgmN7IbtFJKfSCreYQjl4sATZXhd3Ko+AHTtMML3sVc=; b=w9JkclEPsSFJWp8MbLsLNzcZgffEn3MfSLIrwlfNDK7EU337XLTNYA9csfFkjOR/Ql 0fP+AXLVuvbvWnpiJ66wKZViJ7KoTNKGMguE2vniiKKVmA/4QeO1tc86laFyc9oKi2kO VAr6Ri83HahKmCWs6gAv8jGN7sMLOiy2jnh/8XCF6swdJBKFErLhs562qgEwEE/D/cq5 q0fR4/RAnTLgDgBdLxGTgkb5NTBJyPrS0cE5w94LwYiAAFxcLMll9yeQXHLAJKyrM0/v gq/Z2aFEfO8TMkwYPUqa7OnE+RPzXNS+iRoDCm1S3nRwH2AGK23/xzv+azt/zRqRbu7N 0DSw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kkk33ffq; 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 pa9-20020a05620a830900b00789376ae75dsi396060qkn.5.2024.03.21.12.29.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2024 12:29:11 -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=kkk33ffq; 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 1rnO5S-0005Ju-Pt; Thu, 21 Mar 2024 15:28:26 -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 1rnO5P-0005HW-Ql for qemu-devel@nongnu.org; Thu, 21 Mar 2024 15:28:23 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rnO5N-0006nW-HE for qemu-devel@nongnu.org; Thu, 21 Mar 2024 15:28:23 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1dee27acf7aso9459245ad.2 for ; Thu, 21 Mar 2024 12:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711049299; x=1711654099; 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=j3kLKwxrLH+M2Nw+NGqU18RKQy972773C7GhxsV0pgI=; b=kkk33ffqZjGF2lcP5G4BmL3AA8FcUaA3gEo5s1MgV02acoVDTZfeEsJi9/4hOuUlqK iFYL7rUdXcfem43U8CatSdna2OWMbkFdIqKoXHHSa/yNVDF64dD6H8NrzHkiJo/Rd1te Te0s34qHY5gy+HzBkwvEsMt5u1/bOLJzaR3Dm9dLj6StQYcbp8XGJp6Rot9mJ2J4uBRa K4bLUi8Mr/FuIXgcf/tQvNVZ+wX4xtqcMmueyis6t+YRLlvIk8Adc6NwM18CGun7nYv4 CAFIRVKrgjfbWnhsMRF3gq7Pef0cl+o43aG3UxMuTv+5v2D/MlUxc1cfCdPk5Fc/BkkP 7L0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711049299; x=1711654099; 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=j3kLKwxrLH+M2Nw+NGqU18RKQy972773C7GhxsV0pgI=; b=scB6JP7I/1QPu42o7TYVdVzBPxc2vI9KYZh9h44O12tB7ANqoIxYjB9+q9+Clx6usA ZjuIXBfSMLxFkhDsYPLBqgT7zwwsp5fvvvjisf+kXmhzAZ3v6iD7LrUl27eZIS5TkDJJ +lOf6PgVR2Og455mgd9PQvD10+REGLETiDExoSgm2NTQp9EC7k0xpmt3u/GRiCN86rDP HkR70UYLBbXe36YvrIplbIJ3XL6qWRNuZljJk7cAsFrUkW3PAy5NM2GTJeikC+80Oq0+ /rDc1K8/Jqbtz5t0Ile8MDqJKUi5f+6+LSvcS/goqfDLy1akgKVuauCPHI123cin+H5x uKRQ== X-Gm-Message-State: AOJu0Yw+4h9b2tHSLnwZOVT1TnBrJq+1uSLprKWZ2HgWSwxPgqVTaws1 /1RhDQxRegv+az5n33IVVuk3R2ntvfRWeQxJeQ+UasGPR8uBBTxw2yQVUgkEROueQQqmu08xWJ8 I X-Received: by 2002:a17:902:7248:b0:1de:e5aa:5ce with SMTP id c8-20020a170902724800b001dee5aa05cemr337569pll.41.1711049299140; Thu, 21 Mar 2024 12:28:19 -0700 (PDT) Received: from stoup.. (173-197-098-125.biz.spectrum.com. [173.197.98.125]) by smtp.gmail.com with ESMTPSA id p8-20020a1709027ec800b001e06c1eed85sm207303plb.141.2024.03.21.12.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 12:28:18 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de, svens@stackframe.org Subject: [PATCH 2/2] target/hppa: Fix B,GATE for wide mode Date: Thu, 21 Mar 2024 09:28:13 -1000 Message-Id: <20240321192813.371526-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240321192813.371526-1-richard.henderson@linaro.org> References: <20240321192813.371526-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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 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 Do not clobber the high bits of the address by using a 32-bit deposit. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Helge Deller --- 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 1766a63001..f875d76a23 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3880,7 +3880,7 @@ static bool trans_b_gate(DisasContext *ctx, arg_b_gate *a) } /* No change for non-gateway pages or for priv decrease. */ if (type >= 4 && type - 4 < ctx->privilege) { - dest = deposit32(dest, 0, 2, type - 4); + dest = deposit64(dest, 0, 2, type - 4); } } else { dest &= -4; /* priv = 0 */