From patchwork Fri Mar 29 22:30:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 784089 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp3428992wrt; Fri, 29 Mar 2024 15:32:27 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXrx2Cwmb2XsJ1wgeVGrGrEvH7CN/+Nxpa8EBgZvayw7lLfDgp2V3Q9oZCMcLUUAVgqaxlu94zsN2TfsOBzemwu X-Google-Smtp-Source: AGHT+IFQE+BQ81nV0vrQ6Yo43aV8si+tU2/wd9iNZgWWIZCrtZV05251CECMP8Daots7s1hX7qX+ X-Received: by 2002:a0c:d7cb:0:b0:696:93f3:7c9b with SMTP id g11-20020a0cd7cb000000b0069693f37c9bmr3069805qvj.40.1711751547377; Fri, 29 Mar 2024 15:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711751547; cv=none; d=google.com; s=arc-20160816; b=O2Ia7Gpyv/WEJ7hpSVbAekZc9qNTY60RuWU2qOuOYz7qC4aPSgpzwrVmPkyA/S1Ph3 lNYB/n9UXWs7OOxY2dYeZnHhxH2YO1IbD5d47RLR9vqRkqJq7JYUZEcQoSfhFEvNtwUs c/ocnEuJl4dmbMyaZTtlyEp5sSgVFA5v6oTW4zMnQr/bCTlVl/jIm+XGTgZzPV2kHubS ecwJwp/Yui0IkMn2pMyECUQMOXpZkMeI8XlV4YH+UUHpCVBOu6QvlSKWnf2QL7g1YHaS jESt05xNjxrIjTGDtfEYHCN1rKpLI+h56qd64TvT1JJ5zJTT1j8srC3jShvFtXcYXhTT iGAQ== 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=zUaBJKSO6H1bbGryp1PQTqH1TE2lEnHyVoVrY4Z6LJ4=; fh=3//KcqJEsa04kIBt5Nb/DJuP+2GuH1NwDRxnSl44zdw=; b=iA66gpM5x3qHM+SSHVuXX41/qEVOsQRxOZrMYqisiOJ4+7Y59gigi/rY8E+zjNfMK4 j3WK4vZvG1NNuDMh6fVsorZ7UOZ3Oo/a12/xrjAPPiCMsHlo6myfXg2+vpaHnzfEeTq7 hjmyAwN2YblsKiZ8YmAIG+/HMOniFDKAApBVx27PHZM80pYTkF2MQ3RJRZz/Zke1nPSB Eh/87XKBg6Kkz7L3UmetljHIz7Jb63XrqF52CaOpwv1nPUj8H9jQxhBJ8o1M3OfIKJPc qIGCgyCAwgMwtI1Ld5av8xYpvm4DCR1pnrAQnZgjHIWpx3tDHyoPKcODHe2s+3GO43pt Fg0g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YMbDbEwa; 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 r1-20020a0cc401000000b00696973320cesi4759152qvi.281.2024.03.29.15.32.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2024 15:32:27 -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=YMbDbEwa; 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 1rqKkz-0002XH-UT; Fri, 29 Mar 2024 18:31:36 -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 1rqKkt-0002Vz-TF for qemu-devel@nongnu.org; Fri, 29 Mar 2024 18:31:25 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rqKkp-0003Uq-Us for qemu-devel@nongnu.org; Fri, 29 Mar 2024 18:31:22 -0400 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1e00d1e13acso17038075ad.0 for ; Fri, 29 Mar 2024 15:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711751478; x=1712356278; 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=zUaBJKSO6H1bbGryp1PQTqH1TE2lEnHyVoVrY4Z6LJ4=; b=YMbDbEwa44L2LhoZinm+P7gyCr76Y1QyIPMHQ3yw2mHqmERJsfQOLG4NDOMt92ixhl ZhcylLUlPH8zmyvISWYquIsB/4mZuBFDqU3N6h5ylxJQFLfZ7kwaC/QL6Ucl2ie/cyj9 8l1ky79rqj20dlb0wMUW5zjum16YSrus1uGcke7cE16aq6LquAyBny72QVQQvcmLt2AJ dUWH0XW3aFxu+hhqeML6E5moYi4vwOzmEk3xZNnDJB6BgacWNDGHg76K7wEsnnVhVWNE OH7Wl0A3l4doPB5dE4fGFemVXBh+02xXmNcLgM8wlKbdqn/iNWQPcaY9ZMFJcFkiSfFp nngA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711751478; x=1712356278; 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=zUaBJKSO6H1bbGryp1PQTqH1TE2lEnHyVoVrY4Z6LJ4=; b=uy7L3kdZ7njYibtL7iuZMlJUFMkZSizCwMqOQneYS0Gwog+Lke48WqPv3M/Au4OeZ3 4vhwwv/NeZ7VhY3zJ767FxPXjgusfIS3P4zG5QMTnfouvpgrHmCf/yMPWUPeyPFWYhcI TaF313aDbu3h1koeKnUVGUaOI7kBaQuaobzQlg/ua9trkPTk6zbWzyJVYKH5Wz781Z3t FIR5LKW+RKMFkbklZYzRUnWe2KBMhDKkohcDgEf7sidxHYD5nOdTNrq6i7HwCXqhgfKE y/htjJzX/fyHgE0sv0QA+ZwzCp9i93l6tdLBTt46m4GyAl/WVE4G74irHbMS+HDEiEmb ELNw== X-Gm-Message-State: AOJu0Yywz+NOJZ7US0DO8Za/fzFOIl0nJQwduUnVyFSPExvwDZdOiUV8 EpNTwGmfUHbCxZA36ywq4SKvpHnYgIq/BE5XXji6qLSe3qWZ2hK27RDF9By+PjcsbfYDTorh78c 2 X-Received: by 2002:a17:902:6546:b0:1e0:a326:e89e with SMTP id d6-20020a170902654600b001e0a326e89emr3307183pln.37.1711751477989; Fri, 29 Mar 2024 15:31:17 -0700 (PDT) Received: from stoup.. (098-147-007-212.res.spectrum.com. [98.147.7.212]) by smtp.gmail.com with ESMTPSA id f8-20020a170902684800b001e09b636cafsm4000955pln.287.2024.03.29.15.31.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 15:31:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 02/18] target/hppa: Fix B,GATE for wide mode Date: Fri, 29 Mar 2024 12:30:55 -1000 Message-Id: <20240329223111.1735826-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240329223111.1735826-1-richard.henderson@linaro.org> References: <20240329223111.1735826-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x634.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. Reviewed-by: Helge Deller Reviewed-by: Philippe Mathieu-Daudé 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 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 */