From patchwork Sun Mar 17 22:14:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 13594882 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2EAC0C54E68 for ; Sun, 17 Mar 2024 22:16:58 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlymQ-0003cg-EL; Sun, 17 Mar 2024 18:15:00 -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 1rlymJ-0003bo-40 for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:51 -0400 Received: from gorilla.birch.relay.mailchannels.net ([23.83.209.75]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlymF-0005jR-M1 for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:50 -0400 X-Sender-Id: _forwarded-from|134.3.94.10 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 76D70941591 for ; Sun, 17 Mar 2024 22:14:42 +0000 (UTC) Received: from outbound5f.eu.mailhop.org (unknown [127.0.0.6]) (Authenticated sender: duocircle) by relay.mailchannels.net (Postfix) with ESMTPA id AEBA2941797 for ; Sun, 17 Mar 2024 22:14:41 +0000 (UTC) ARC-Seal: i=2; s=arc-2022; d=mailchannels.net; t=1710713682; a=rsa-sha256; cv=pass; b=ZZV7pjPcFO7FwC8u6tV3eMrYRsnjbFfZBndGM9ZeYLAlBRtgkPuBkTS1Nm/WT1d8dm74Nx NgAaJAuJSldK4xRTaT//cPO/IKfpdTLvxE/0BF7MPoJMjWKt9IlJBNUbFsE7oOweltHr33 mYCCpBaIyI448yxx1JVEmPddAR7XYpRzP33on0+59py9xPJyHyo4ZIAfH6tufB/2vTiyQ0 Omj5UV+LTUchslfW1bGAqVoUKVi+EQH2htEghQzhK7BsOI3c7eJAwC0ug8/mJ11elWZXIT Dly4H4MojLeLG+6liDONq3JfcFnGMcPh3TLQwtTAoANl2wNLSPE/E8plY7sxKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1710713682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=YwG8RKKowsYV3omc6o+Z8lijeUzieRfpLCia9vjxzgE=; b=nSy5whcsAvZDpvv+QxIr7hu34zfF+EcC7OxwCwtG1kyw7H5auMWy5cNQRuGVJrIRpxcC8f /LtbblYijSFBZy0b+X2KCDZwKWRDd8p1sxzC1N6IJFb0SEpnhMGjD6Q50uhi1hv50SaNgB MISdi5FDm+nyONQXOgV+Rx7CLg8HFXA4dgnys+wOjLSglXcnwukIDHSlf2n5zNOWcqt1OO P8aGHgYZBGQ9ZvFtGII56a17X3KIZ5i9i+nFYo8qDcTjvUXt6j9Vi+Ebk4mgPb8TKRto7c tPHmpul9+qNfyW5PT5Jo2dixYep9C+6kHXnm6pqoZEhNZOyPcNJol9n13A9PXg== ARC-Authentication-Results: i=2; rspamd-b46fcdc5-9b7lh; arc=pass ("outbound.mailhop.org:s=arc-outbound20181012:i=1"); auth=pass smtp.auth=duocircle smtp.mailfrom=svens@stackframe.org X-Sender-Id: _forwarded-from|134.3.94.10 X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from|134.3.94.10 X-MailChannels-Auth-Id: duocircle X-Illegal-Obese: 21a265813c4be00e_1710713682213_2189913773 X-MC-Loop-Signature: 1710713682213:599319948 X-MC-Ingress-Time: 1710713682213 Received: from outbound5f.eu.mailhop.org (outbound5f.eu.mailhop.org [3.127.8.113]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.99.130.139 (trex/6.9.2); Sun, 17 Mar 2024 22:14:42 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1710713571; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=JvFWSAywv4Adh/phxX/e9PidlGQ7qR9fK8q+ghxiaY+NPAZaYD5DwAlElrJcezMLC6geLwwbcnuff 1wUE1Ya1Ow3faoW4xetkL8HMzpcX1G+sN1wZp8Zo4KyHP03RFSpc9KvcfVJl4OLsGNwBqUAAxaIjfM yR0XnOrbIcwzOz1Emz4gxbZPszefq6ZR1Q8jMHKQk10nh5c6JcAUeD8jS6A6yx1I0nnRqAF2QjjJ+h u635Iq9WwKaULCoLOLny1uXyVIHdYQKBML+RCGNLTFoYbpUiB6jAXOjBsNVw4sZznnv80+MLnPXBdm +QPtL3kz15eQgvYky48FbAdTDTu2MNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:dkim-signature:dkim-signature:dkim-signature:from; bh=YwG8RKKowsYV3omc6o+Z8lijeUzieRfpLCia9vjxzgE=; b=q9muyNuh/BNDS/2ceN2+LPZ3d6EG63XctKmqbiPuQhO79ZfGaXxBswUTGVcnURzRgMTWQn2dsQDFr gbSNnjR8wzTo3FRia9TtiUiyUNJD+fhj3xmOQ0tYAH/KWZp/BhERwJSBraDXF4K7hX0yNVs7yo4MYl AomoK5NtKKvqzhGSURvcV91udPoInJFapQzs7fT5B71ylOSDU+ya/5+tnA2MVUTzom9PiPGa+iLY8h aFX/qpj/fI7yPhYgYH1H9SW5fs5CP1PtoETd2dikASPDtbMcQzPzUFRf7YpZaR3He/BwrTEbeplu4a YJORFqh0Pm952xhG2clH92HneVhJ0bQ== ARC-Authentication-Results: i=1; outbound2.eu.mailhop.org; spf=pass smtp.mailfrom=stackframe.org smtp.remote-ip=130.180.31.158; dkim=pass header.d=stackframe.org header.s=dkim1 header.a=rsa-sha256 header.b=K3ROhvFh; dmarc=none header.from=stackframe.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stackframe.org; s=duo-1634547266507-560c42ae; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=YwG8RKKowsYV3omc6o+Z8lijeUzieRfpLCia9vjxzgE=; b=ZmlQTpMfXeVUNUcFoALjvCjmTWXwqfMs38vvNR/Q07Ea3Bni5Q7WgUQbwseF8TQ/zftm/ZGln2pmw 3mp8+DNu/bZi5WsBy3NjZGoG6IjfptKGg9P1IToftr3QDqru8SDj/JVLrwnUP62efKLpJqWI/jm1wX nSLdeGfPuzp4G7jg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=YwG8RKKowsYV3omc6o+Z8lijeUzieRfpLCia9vjxzgE=; b=wJ3LWM5VwrPY0378QlWEwx+NjJSRfwwG8uzY+DeS78LhGHhdjwSyrUHI6fXY3o1fV6SWe0YB7sjqJ 2S1WSZmSqM0nZdo6nsN5BBtwKnZi8cJhC3SbYg+knCUeneaYWeEQUFsRktE46VC+KbSBxv7TxTUs8z ZYsO0SJrPxI4wq3vnFf0IL/HW3RT+p3waf5j0Ia4k5K451yYcchSt444XpTwGTRKAWcpTX+0WA7sgC EKRFQsfGlIdz4VLAXTNS6DjqH8fvTjeP/nnpWTRnPPFAVXJlrKtJUzAvdiBroqwQyJ/OqmchNFGo4r 25Z9T9S4v4BPDFkB8m+tLSAqi6pKd4g== X-Originating-IP: 130.180.31.158 X-MHO-RoutePath: dG9ta2lzdG5lcm51 X-MHO-User: 7cc3abaa-e4ab-11ee-b7ba-9b9d9be6ef2c X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from mail.duncanthrax.net (mail.duncanthrax.net [130.180.31.158]) by outbound2.eu.mailhop.org (Halon) with ESMTPSA id 7cc3abaa-e4ab-11ee-b7ba-9b9d9be6ef2c; Sun, 17 Mar 2024 22:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stackframe.org; s=dkim1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=YwG8RKKowsYV3omc6o+Z8lijeUzieRfpLCia9vjxzgE=; b=K3ROhvFhYHCyqDlULrqacuZ4qp cDgnE8jI0RSWDsHSQAraFiqWDlDoubJo1HD4BIVjmnDuWnEagdaTWDblR3uWgUt/RkaI3wI8QLr3n 2rDGoCjdq5HMB5p82X8hdYmmujXKmFM7TZBgtMh2T8kvQn9ieJaufh1b358bIa0B+codJo9JkdBxH S/of7jyKNFB1kq2Wfy+0GXafHto3ILN3Rtlw90GSnUQuyUr91W+pdiWPDX2s3nLxMBqYF2qeQEYmS PrAnvGnu7CGLjo1UFHafbMven1ZC9Jod02LIJJl40vAmhjEh87BMtXAboQ0W9ROUg8jvjmZO3GV+W Y0+Nbp9w==; Received: from ip-134-003-094-010.um41.pools.vodafone-ip.de ([134.3.94.10] helo=t14.stackframe.org) by mail.duncanthrax.net with esmtpa (Exim 4.96) (envelope-from ) id 1rlym4-004C3C-3B; Sun, 17 Mar 2024 23:14:37 +0100 From: Sven Schnelle To: Richard Henderson Cc: qemu-devel@nongnu.org, Helge Deller , Sven Schnelle Subject: [PATCH 1/7] target/hppa: ldcw,s uses static shift of 3 Date: Sun, 17 Mar 2024 23:14:25 +0100 Message-ID: <20240317221431.251515-2-svens@stackframe.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240317221431.251515-1-svens@stackframe.org> References: <20240317221431.251515-1-svens@stackframe.org> MIME-Version: 1.0 Received-SPF: pass client-ip=23.83.209.75; envelope-from=svens@stackframe.org; helo=gorilla.birch.relay.mailchannels.net 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, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Sven Schnelle Reviewed-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 eb2046c5ad..6a513d7d5c 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3085,7 +3085,7 @@ static bool trans_ldc(DisasContext *ctx, arg_ldst *a) dest = dest_gpr(ctx, a->t); } - form_gva(ctx, &addr, &ofs, a->b, a->x, a->scale ? a->size : 0, + form_gva(ctx, &addr, &ofs, a->b, a->x, a->scale ? 3 : 0, a->disp, a->sp, a->m, MMU_DISABLED(ctx)); /* From patchwork Sun Mar 17 22:14:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 13594874 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 61103C54E68 for ; Sun, 17 Mar 2024 22:16:27 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlymW-0003eJ-6E; Sun, 17 Mar 2024 18:15:04 -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 1rlymK-0003cH-1C for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:52 -0400 Received: from gorilla.birch.relay.mailchannels.net ([23.83.209.75]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlymF-0005jS-O9 for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:51 -0400 X-Sender-Id: _forwarded-from|134.3.94.10 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7CFB581905 for ; Sun, 17 Mar 2024 22:14:42 +0000 (UTC) Received: from outbound2.eu.mailhop.org (unknown [127.0.0.6]) (Authenticated sender: duocircle) by relay.mailchannels.net (Postfix) with ESMTPA id D6E348192D for ; Sun, 17 Mar 2024 22:14:41 +0000 (UTC) ARC-Seal: i=2; s=arc-2022; d=mailchannels.net; t=1710713682; a=rsa-sha256; cv=pass; b=AsuGSnZWfYHvuOC3u3X2YyxO1L6X5juk0f9Dn19cOTg92QpDuEKsd+wnVit3a3cR6Dnqza i0P/n+4F/uOZOyNI1nZhmT+EDZ+1/9t8IEkJO/p6BO1+XKio7n4Zdnpboad8h80gFkhwtW NB3xtu9vqZ9OjPmS7Ct9saM035AIRPxw5fC7Myz2Y0pTaO/Nj7ylK3u6IhMSDRJH128rKL ssJ3Ht+FGqBIaGn6fdY9q1B99BvHrDasJBdowYuS4Ff9Mq5BGPkhwVx3Tpzm2H4v5dN/37 iWmvbyJWV/CLh7UHzyfcbz9RPlmkNH8sPSprMJYYOgsxOtVjREKr0RTjW0NEkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1710713682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=4Chx7VPAxEfKw1KFEIm2lqz2aDxSAD2i+QEL79EEIyA=; b=Hg6s+dle9+6YkcpJ+iHSGzQPY1ohbeAj2bOj9PV5E8Hymvev2FjWmWH/a8I0fEWRLF8sMc KP2azFVI/3vqydDmqBUBva4EzMWblImFWbWTTK0cMeE4xTDbPlxGaKdgeKtR91Xbu5S0gG TCRhKHdX1q3xKGXJaoJZ7JKsy0H/hZhbN/UUtzUAPFot0zsr+EvvzmsGcJoL0yRMVcFp1K SdKi97TV9dxwEcNZ/+9Zxii2dHA9ipFdlUrn7/VDyOdVaxScU1atWybMlvSx0U++BvBJiJ HF9snTON9tLl4ZryuBNq3/yWd4dBpLpT4bRHb1M1egDw8fkRDI/96ox5n7eo1w== ARC-Authentication-Results: i=2; rspamd-b46fcdc5-wwhzp; arc=pass ("outbound.mailhop.org:s=arc-outbound20181012:i=1"); auth=pass smtp.auth=duocircle smtp.mailfrom=svens@stackframe.org X-Sender-Id: _forwarded-from|134.3.94.10 X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from|134.3.94.10 X-MailChannels-Auth-Id: duocircle X-Desert-Scare: 4bf13e264cc9a68d_1710713682392_107567192 X-MC-Loop-Signature: 1710713682392:821115059 X-MC-Ingress-Time: 1710713682392 Received: from outbound2.eu.mailhop.org (outbound2.eu.mailhop.org [35.157.29.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.99.189.199 (trex/6.9.2); Sun, 17 Mar 2024 22:14:42 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1710713571; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=YP/wiqj7dmY05STGG5fgY/jhM26W9MReYL0+u3XRwbYGuACfh4eQUUbfEtFP1fcibPD9fnoAPJr3T hQCtTMKQj6mhKH41n1hCYICeJTJUYkuMfdKqT+HmtWmOINLOZqA0JjKv/SgFaeAZ+hXP/e8PotYrEj XBe7QSSiPMpI1ymS1+WrxVKEQBg0VaEUNw337c+eU9F+kJdN95IHYE8o45PyvpvncYHe0dYc9ZJ2vq EfAmY4zHXRSpichw81DBO6XT7UbNlSC9+3KHNfcPL3xn8dVbbtd0LgR8MphuanbWAI9v9cL7FNyFqo BtwuCCYgOauWUHJ9mYlkeThsOxJr5sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:dkim-signature:dkim-signature:dkim-signature:from; bh=4Chx7VPAxEfKw1KFEIm2lqz2aDxSAD2i+QEL79EEIyA=; b=OG7k/EA0jNm8ILBjWRg3m/rbUHFqspiHs/SlYIkYoXKO4ykVHKRh1RBhuREPPKnfUpigz3yofp5zt Sdd0v9UFRmPd5JcjRWXEBN51rP2nBNT1wh0Nv941EALlxbJ5RNXwJ6iIPv2+ud45E1F9W6e7QLobAn spZhtSw1ZSNa7418kNBqLfPe/+V6pqANbQ+6QLaM4cwArFZnkiKLGMIE+ayVhDCNFO87k7y9aRkzhB cxikmUxTmElUJLCIGPbN+frQOMXcTkAg8FgyQGXWOTj9Bcus6WKTFo7rfnBljVAt0D2dlnIMUNJw2u r5TDQkHI2uj8AgRZ7v7oKnnx5OQ95bQ== ARC-Authentication-Results: i=1; outbound2.eu.mailhop.org; spf=pass smtp.mailfrom=stackframe.org smtp.remote-ip=130.180.31.158; dkim=pass header.d=stackframe.org header.s=dkim1 header.a=rsa-sha256 header.b=JZTtNuAP; dmarc=none header.from=stackframe.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stackframe.org; s=duo-1634547266507-560c42ae; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=4Chx7VPAxEfKw1KFEIm2lqz2aDxSAD2i+QEL79EEIyA=; b=d/U0sV7dJsCXC1uquKSvYyzj6JkoXrMe6xUIv2EZTVMbmkTThGVIbD7bl6bCG3nWD9vnb/ldXD4uC J+Oa7uFHrZI4CHiEUvTreIf/zFvQUOc9vju+Qm4PjKxba/IKwiJd6aP490hicefy8OiN0YYoR8ylwI bMAyP8fkpU5jG0pM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=4Chx7VPAxEfKw1KFEIm2lqz2aDxSAD2i+QEL79EEIyA=; b=CVGdAQaMy3SvzVe/YY3Wj+f6OPQt3YUWzdfySx3TpWqEgzFuEWYSORVoG15tueEhxh2dHdw62px+I Xf2t962qoEolE8PNh78PuANdOz4B4gSdGKQRIGnO2kRhU9YH69F/10OixqQLQnJPefTA5vq9bQ18Fo 20G8QLjUWXhPjPAI7bb26LLEECUg706jLrB/FHIzUY2EMenKwCZxJ1pMWOofKLjJvPV+Q8Ntr60tk7 91o4VNGm/TkDlH/tTcr1PQYGN0xk91bMXI8UGJIgBURvl80Doyw1VaUtI8cqNoLNjMoPhbM05t9lIs aPgkrfPrLM4FEbYmsVcAehpornL24tA== X-Originating-IP: 130.180.31.158 X-MHO-RoutePath: dG9ta2lzdG5lcm51 X-MHO-User: 7cfc0b2a-e4ab-11ee-b7ba-9b9d9be6ef2c X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from mail.duncanthrax.net (mail.duncanthrax.net [130.180.31.158]) by outbound2.eu.mailhop.org (Halon) with ESMTPSA id 7cfc0b2a-e4ab-11ee-b7ba-9b9d9be6ef2c; Sun, 17 Mar 2024 22:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stackframe.org; s=dkim1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4Chx7VPAxEfKw1KFEIm2lqz2aDxSAD2i+QEL79EEIyA=; b=JZTtNuAPLN8yFRhIvUdK7Fqhy1 dMjMomX+3sLxNLQbnOpbXC5C6htHGfjwF/nsCFgrwsnYZmdhXqS3fKZ5hDzik4XgHKLtQDgPiKJJ5 jI6SmnM9B5Rlh4eGbz6dOB4Nbx0xm8th30rzFjSLxdbYslcm1En+/Men6TYc4vrGkLjl39t2EM26J tu1YUHOmbFN9gzwOZYO/R29FinHHYpDARZNjjpx/kMJCP+3ABbyrpSkV/UomTQ06RFSy/umF8L+h7 K1RKuVz+MXG6PlTNBAO3P5eD6F3BzU0VeBWqzyOeT2Hv/FwtMrLjyJMyuogxuPs1lr7BE1pGBYROR KL6NS8xw==; Received: from ip-134-003-094-010.um41.pools.vodafone-ip.de ([134.3.94.10] helo=t14.stackframe.org) by mail.duncanthrax.net with esmtpa (Exim 4.96) (envelope-from ) id 1rlym5-004C3C-15; Sun, 17 Mar 2024 23:14:37 +0100 From: Sven Schnelle To: Richard Henderson Cc: qemu-devel@nongnu.org, Helge Deller , Sven Schnelle Subject: [PATCH 2/7] target/hppa: fix shrp for wide mode Date: Sun, 17 Mar 2024 23:14:26 +0100 Message-ID: <20240317221431.251515-3-svens@stackframe.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240317221431.251515-1-svens@stackframe.org> References: <20240317221431.251515-1-svens@stackframe.org> MIME-Version: 1.0 Received-SPF: pass client-ip=23.83.209.75; envelope-from=svens@stackframe.org; helo=gorilla.birch.relay.mailchannels.net 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, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Sven Schnelle Reviewed-by: Helge Deller Reviewed-by: Richard Henderson --- target/hppa/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 6a513d7d5c..8ba31567e8 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3462,7 +3462,7 @@ static bool trans_shrp_sar(DisasContext *ctx, arg_shrp_sar *a) /* Install the new nullification. */ cond_free(&ctx->null_cond); if (a->c) { - ctx->null_cond = do_sed_cond(ctx, a->c, false, dest); + ctx->null_cond = do_sed_cond(ctx, a->c, a->d, dest); } return nullify_end(ctx); } @@ -3505,7 +3505,7 @@ static bool trans_shrp_imm(DisasContext *ctx, arg_shrp_imm *a) /* Install the new nullification. */ cond_free(&ctx->null_cond); if (a->c) { - ctx->null_cond = do_sed_cond(ctx, a->c, false, dest); + ctx->null_cond = do_sed_cond(ctx, a->c, a->d, dest); } return nullify_end(ctx); } From patchwork Sun Mar 17 22:14:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 13594871 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 64D78C54E71 for ; Sun, 17 Mar 2024 22:16:27 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlymg-0003fp-LH; Sun, 17 Mar 2024 18:15:14 -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 1rlymK-0003cV-FE for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:56 -0400 Received: from cat.pear.relay.mailchannels.net ([23.83.216.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlymG-0005lT-IT for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:52 -0400 X-Sender-Id: _forwarded-from|134.3.94.10 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3B92A415B1 for ; Sun, 17 Mar 2024 22:14:47 +0000 (UTC) Received: from outbound5f.eu.mailhop.org (unknown [127.0.0.6]) (Authenticated sender: duocircle) by relay.mailchannels.net (Postfix) with ESMTPA id 9573A41584 for ; Sun, 17 Mar 2024 22:14:46 +0000 (UTC) ARC-Seal: i=2; s=arc-2022; d=mailchannels.net; t=1710713686; a=rsa-sha256; cv=pass; b=y94h/bsFgqTQo/XjUHjpol0+aJxD9upa/PJxo8AClB6nETbunFRs2cU6s4CvGRepUwl0/x y5gxMj/33wi/JhjZPTXbyGDAMXIrvLHCMCT6XneUVW9RQpm/fe3qhIoKAuwCR0isV292Jc AWMKIBQ6oBICmImc8RfC6JojV4pdSErTSY4eAmbhRYs7VNGrwTRM2yH+qArGbQrp2zp8Mb xlk+/iC3Xn+hLJFMcyvB2Ng6vjl1fdjzT7mYnsdMZQdDlmcVSrDIt8gyQQU8sv4OzGrklw iVW09eazGRK3KOROIG7lXgf8jZB4bHnzOU+1SDnbgVwnEqBjVOrKX0Sls/r1mg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1710713686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=sbLMLwbVtU5SxLDFLePP1tB9lob7A4Zj3o5kCDF/4vI=; b=hCFEbBKTqOqXcVg/zgUIW3Cf2RRgJ6r7ve792r0ht26VIqOGcvrl3SgCaNXj3hUD9E6AYJ gSVjNqgRLA+3+KDpVvK6izILu/DTfGRnzCrEzfOfwr9fbmI2ndlgVi4CzUPBjObzczkSb1 ngw1/L4Cmqzj0zTvFoDwWPkNXJn9SBwjGt+HBnKzDxizpILqrTIFQnyU4hXB5a+2IEEhWV 9nTL957BEwtXrl6WnKzysZ9bkERMtzdjqqzOcP4xEUWE7XWusFgwwREbcvXzIJAa9J9cyL 5ZdxnckSAkOD2blW2C+m42ztpx7tiakRWbVdL6ZiVHSzwMnf04qoV1zb1UEEYw== ARC-Authentication-Results: i=2; rspamd-b46fcdc5-6n9vx; arc=pass ("outbound.mailhop.org:s=arc-outbound20181012:i=1"); auth=pass smtp.auth=duocircle smtp.mailfrom=svens@stackframe.org X-Sender-Id: _forwarded-from|134.3.94.10 X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from|134.3.94.10 X-MailChannels-Auth-Id: duocircle X-Language-Juvenile: 2e773bb8145a247d_1710713687114_54642100 X-MC-Loop-Signature: 1710713687114:828709202 X-MC-Ingress-Time: 1710713687114 Received: from outbound5f.eu.mailhop.org (outbound5f.eu.mailhop.org [3.127.8.113]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.126.173.87 (trex/6.9.2); Sun, 17 Mar 2024 22:14:47 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1710713571; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=MEsQ+4K51icQps/1tL0+MP5aLiitm7xSjBDifkc4ddAvMEa/xiEcWEamfgs6PvUa5RB+U3W1zhdfo 0/apG9XBn94ONaTFRuRg6RtcwTl+VwBXH0JFtQuejitmoyu3UxL4wdQw/JBrE7ZCg81qt7lYps6np5 IJmhi7ja7UQpD1rdoXjcCzRHF+wdct8V8KEgwGwQu6VuKhzGKcPeo0qAUvYzRY4oDfWHOmPJZPZNWn jtfooiNul4XHyjFnL5402IIrax4JApuQ1N+HZ+u2gSnXjOcb0les4ECPSn/046LFKPlIzvQ/kedyC6 IJdQde0qZdN7/iw6bXIok124OkioP3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:dkim-signature:dkim-signature:dkim-signature:from; bh=sbLMLwbVtU5SxLDFLePP1tB9lob7A4Zj3o5kCDF/4vI=; b=UUQvP5tjvzf5iOmmk1Y2Vg/Sow+YTLtuw6rnOeEQAi5dcdkGx5anI7w5RzVD4AIIrljtpTPoEsmnd F9j6mcKmLJFa9lUATXHkdUFGcbjALgwyU+KuwylrysPXVa64VJF9sZRQtvJwR+nYH+sM4RM/CP8Xnb 2ptdTD4DvO4xrQa46fITnJayFRQ2hY9cq7jjlFwsLAz5y10yyXwFaSqNdn09qGYs9Plo8kPokN9Kka dYl6DVbE4YobX8ik6+S3F9NN9IAIXeLosAbrjFz1pk9RdXSBHZoDPTu35Ndbv61znnHpUMdt7szctO pqty4kfCnwwxJPE7N6C9BnLMig6v9nw== ARC-Authentication-Results: i=1; outbound2.eu.mailhop.org; spf=pass smtp.mailfrom=stackframe.org smtp.remote-ip=130.180.31.158; dkim=pass header.d=stackframe.org header.s=dkim1 header.a=rsa-sha256 header.b=js6PGY+8; dmarc=none header.from=stackframe.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stackframe.org; s=duo-1634547266507-560c42ae; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=sbLMLwbVtU5SxLDFLePP1tB9lob7A4Zj3o5kCDF/4vI=; b=GgvqwmGLc0kM0FUpbr2grZov29I+99pixGbn5Psvy3KA1bQoGntNRM1LBhs3T+4PoIytI09a8X0Da Wc+rFdktjZlPHVi1yL22mTsWkIdQhdrzZvYb3u0X5cqq/zBjnzbVdbGJ6PHVgSaZoKNPKeC/9R53I8 TBOnxJULBdCWN9Zk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=sbLMLwbVtU5SxLDFLePP1tB9lob7A4Zj3o5kCDF/4vI=; b=ql9emCSKTWYxleNpmS68VS27+OddQ0r4asBu8d8P/0IpM4+r5QV0J1QedqBhd8T4RrXmmHMFLMfjm 03GRFyF5D8/OJQqTixvV9L68PKfcfIjRuq+CmMXywNkBCdUg1mxtFAtrfRdFMep6K+SlIqcAeJWuEw J4e9q8yHvbRdCCXbLDwN7hR8wkf+jvQlp0zhuprFjVydCLGmLNGrC5YoXr7QBOC2j2IIz4gJTcbf/a 09fahFwU1YtByIBaUguUutVoqFkuHQkgjkUfpbUSRuZQLXO6+XSB+dYhqKu37Z4Rxbft1U/YZu9vEQ 5h/mknGhUVBBSf3Z+lPK38zhMt89+UA== X-Originating-IP: 130.180.31.158 X-MHO-RoutePath: dG9ta2lzdG5lcm51 X-MHO-User: 7d32ccde-e4ab-11ee-b7ba-9b9d9be6ef2c X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from mail.duncanthrax.net (mail.duncanthrax.net [130.180.31.158]) by outbound2.eu.mailhop.org (Halon) with ESMTPSA id 7d32ccde-e4ab-11ee-b7ba-9b9d9be6ef2c; Sun, 17 Mar 2024 22:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stackframe.org; s=dkim1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=sbLMLwbVtU5SxLDFLePP1tB9lob7A4Zj3o5kCDF/4vI=; b=js6PGY+8/lMlFdbhRdjvEncF8J 4k3CeUTqJCs59Yp5weSN9w3+N+poG5Slc+0WNsrGvQQcFXJkhDCYlNIH02eM5vGm7rPIbaRmVqUMt Pr69zEZVPfyyctaPbAVHwJ5creEiuIASV5kPYo/pll0IOMWolcahMhl3q59DWlXhKLtSG1CE7l/Mo X0mazz3YlDe07vp5i/YN0lxcPp/X0pCtX654g/mjV67bW5D+l4yUnfvADehrYBMzfFkPzO3jtn5st sF6cmd3NYiLunTbIW0JLc86F64dPjFsOPvrN5JeG7liolgmEQRQ1Tsr0NFrtpnZm+aXmIBTGZEYVN ntIrVLTQ==; Received: from ip-134-003-094-010.um41.pools.vodafone-ip.de ([134.3.94.10] helo=t14.stackframe.org) by mail.duncanthrax.net with esmtpa (Exim 4.96) (envelope-from ) id 1rlym5-004C3C-2J; Sun, 17 Mar 2024 23:14:37 +0100 From: Sven Schnelle To: Richard Henderson Cc: qemu-devel@nongnu.org, Helge Deller , Sven Schnelle Subject: [PATCH 3/7] target/hppa: fix access_id check Date: Sun, 17 Mar 2024 23:14:27 +0100 Message-ID: <20240317221431.251515-4-svens@stackframe.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240317221431.251515-1-svens@stackframe.org> References: <20240317221431.251515-1-svens@stackframe.org> MIME-Version: 1.0 Received-SPF: pass client-ip=23.83.216.31; envelope-from=svens@stackframe.org; helo=cat.pear.relay.mailchannels.net 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, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org PA2.0 provides 8 instead of 4 PID registers. Signed-off-by: Sven Schnelle Reviewed-by: Helge Deller --- roms/SLOF | 2 +- target/hppa/mem_helper.c | 67 +++++++++++++++++++++++++++++++++++----- 2 files changed, 60 insertions(+), 9 deletions(-) diff --git a/roms/SLOF b/roms/SLOF index 3a259df244..6b6c16b4b4 160000 --- a/roms/SLOF +++ b/roms/SLOF @@ -1 +1 @@ -Subproject commit 3a259df2449fc4a4e43ab5f33f0b2c66484b4bc3 +Subproject commit 6b6c16b4b40763507cf1f518096f3c3883c5cf2d diff --git a/target/hppa/mem_helper.c b/target/hppa/mem_helper.c index 80f51e753f..e4e3f6cdbe 100644 --- a/target/hppa/mem_helper.c +++ b/target/hppa/mem_helper.c @@ -152,6 +152,59 @@ static HPPATLBEntry *hppa_alloc_tlb_ent(CPUHPPAState *env) return ent; } +static uint32_t get_pid(CPUHPPAState *env, int num) +{ + const struct pid_map { + int reg; + bool shift; + } *pid; + + const struct pid_map pids64[] = { + { .reg = 8, .shift = true }, + { .reg = 8, .shift = false }, + { .reg = 9, .shift = true }, + { .reg = 9, .shift = false }, + { .reg = 12, .shift = true }, + { .reg = 12, .shift = false }, + { .reg = 13, .shift = true }, + { .reg = 13, .shift = false } + }; + + const struct pid_map pids32[] = { + { .reg = 8, .shift = false }, + { .reg = 9, .shift = false }, + { .reg = 12, .shift = false }, + { .reg = 13, .shift = false }, + }; + + if (hppa_is_pa20(env)) { + pid = pids64 + num; + } else { + pid = pids32 + num; + } + uint64_t cr = env->cr[pid->reg]; + if (pid->shift) { + cr >>= 32; + } else { + cr &= 0xffffffff; + } + return cr; +} + +#define ACCESS_ID_MASK 0xffff + +static bool match_prot_id(CPUHPPAState *env, uint32_t access_id, uint32_t *_pid) +{ + for (int i = 0; i < 8; i++) { + uint32_t pid = get_pid(env, i); + if ((access_id & ACCESS_ID_MASK) == ((pid >> 1) & ACCESS_ID_MASK)) { + *_pid = pid; + return true; + } + } + return false; +} + int hppa_get_physical_address(CPUHPPAState *env, vaddr addr, int mmu_idx, int type, hwaddr *pphys, int *pprot, HPPATLBEntry **tlb_entry) @@ -227,15 +280,13 @@ int hppa_get_physical_address(CPUHPPAState *env, vaddr addr, int mmu_idx, /* access_id == 0 means public page and no check is performed */ if (ent->access_id && MMU_IDX_TO_P(mmu_idx)) { /* If bits [31:1] match, and bit 0 is set, suppress write. */ - int match = ent->access_id * 2 + 1; - - if (match == env->cr[CR_PID1] || match == env->cr[CR_PID2] || - match == env->cr[CR_PID3] || match == env->cr[CR_PID4]) { - prot &= PAGE_READ | PAGE_EXEC; - if (type == PAGE_WRITE) { - ret = EXCP_DMPI; - goto egress; + uint32_t pid; + if (match_prot_id(env, ent->access_id, &pid)) { + if ((pid & 1) && (prot & PROT_WRITE)) { + prot &= ~PROT_WRITE; } + } else { + prot = 0; } } From patchwork Sun Mar 17 22:14:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 13594873 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 085AEC54E72 for ; Sun, 17 Mar 2024 22:16:27 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlymY-0003eo-7m; Sun, 17 Mar 2024 18:15:06 -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 1rlymK-0003cc-I5 for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:56 -0400 Received: from kudu.cherry.relay.mailchannels.net ([23.83.223.97]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlymF-0005jV-M5 for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:52 -0400 X-Sender-Id: _forwarded-from|134.3.94.10 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 031B47A26D3 for ; Sun, 17 Mar 2024 22:14:43 +0000 (UTC) Received: from outbound5c.eu.mailhop.org (unknown [127.0.0.6]) (Authenticated sender: duocircle) by relay.mailchannels.net (Postfix) with ESMTPA id 5BB257A25BE for ; Sun, 17 Mar 2024 22:14:42 +0000 (UTC) ARC-Seal: i=2; s=arc-2022; d=mailchannels.net; t=1710713682; a=rsa-sha256; cv=pass; b=bys+K8/cIL6lKimpDTbYoj7+F5sdFwHrbhC+NC5dqJ12q+5L7ec+bnRCr4Qc9kyt2FBEBa K4vUNYFSn8oYAzCCiE9IV75F8vk+yNoY8ei7XdN8lsFUz9rL3mEBKFu5wxzK3aPE8e41OJ NRBrfQ+FAS19xWg75VS9RjYOt5hV87vWDCEGHIM3IoW2GCYrVTjaoLCmBw+WZN2FssdJZZ R91XEYX/Us4zHm/sKgsRvYKx1dTZf8PMArRmkZp76VIOwsF4S3vvPETaF1/3If0BmNXqMo 9ZsHrCLDRHgMoXiHFitm3nrckNuPCA4G+jAtW8K2OnjwbEFnuXLx7XClK3KAhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1710713682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=XIaZGXOlzOcFaNSLv1z7QHkqmwxhFrui26Dl781DBp0=; b=BKj/Pu0XvZPMbyW76MG46hEzZ82HbdYgQPbdG8zIncYVky7EdDIOVVhkZOJ1XSZKeNMqwX EY+97gYBdra1zCXIlvGnYsu32f+0j51a8MG+QyAQjkqLqbWYjF7yDx/CbOI1oSGRoN6iuw jnvFDViYRhCUQ9IYTt+LttulW6fIz9YKA3ipUjQW/c08Tkwz25CsLfJie9IvWttQtp9PJ3 hRFBNAvW+DaDc+4x5Xzjln59LGbvr1s0sU2LnLR/CFpLs26UG/ZdacANsYMtmKdnTIFOZm ulHiMDmzEh/U8bNc1EFkSgAlCUcY58IcmJSfynmRj6l59Osl5AbgZcqwXOU56w== ARC-Authentication-Results: i=2; rspamd-76c7995f89-p48d7; arc=pass ("outbound.mailhop.org:s=arc-outbound20181012:i=1"); auth=pass smtp.auth=duocircle smtp.mailfrom=svens@stackframe.org X-Sender-Id: _forwarded-from|134.3.94.10 X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from|134.3.94.10 X-MailChannels-Auth-Id: duocircle X-Troubled-Absorbed: 4ab606dc27b57978_1710713682875_515434682 X-MC-Loop-Signature: 1710713682875:4021988264 X-MC-Ingress-Time: 1710713682875 Received: from outbound5c.eu.mailhop.org (outbound5c.eu.mailhop.org [3.125.148.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.119.164.55 (trex/6.9.2); Sun, 17 Mar 2024 22:14:42 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1710713648; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=OMSyAlxoMekr+VGC0hFHEF5JzrD04fwPMaFcnp/1eaIkAb9tcLovyaiEbTSLxLBlT//oiUDyb7NvD VzXjZWt5HjVx5f25j4vK7TnGR6UJ9kZIrsPEqNbNOfoijulUksivrl48TbwuPQLlsrH2exqgy12xn8 3ofxNJo3V7d46B8bG3rM/+gddMQfUJJAG5fQuP8U/I2oNk0IYxZ9NHgGK/QIOH/9eSHIec6JwdEI5T cwiO+1V14ySYL3ecJEvw08lG5/1h6GRiyfFl29DYEPCP5tdNw1QCxxI5DT8raoY2oDUKli4p+RhKQR HmGirHZw6lBA9M0kLD5dBp2f9RjHvPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:dkim-signature:dkim-signature:dkim-signature:from; bh=XIaZGXOlzOcFaNSLv1z7QHkqmwxhFrui26Dl781DBp0=; b=d3cnsjAbBZk+M2Fea+x+FrfgmknIcDkaFQp2WJSuLQScAEk91OdaSxGkbdNFXEqmSxpzRB3Cl0lZp xbk3T4L+dX+07tmOS2wIIVVvkH9+ekB2OyXfuP8G5dDDLMRGzf/N821LDMGDZeEA2ROqWfaxVtrXwN C7pOJRjHV26x5mR13vY182fxKvAQCo7BMGpV2Ei1RPHtkz/hu4YxMlYaAS7C5lgbtuRujNyDP+KAal 9YhiX15B4Yin8d0wwVY9F/YvxI9b3XWk7DFFZp9/jawI7y5mZV4DaCt1KbEFLYL7y1Muz+HLbWLnLt LrNFVKuMV7ajR5XyTEw6a6Y9xZVCs0A== ARC-Authentication-Results: i=1; outbound3.eu.mailhop.org; spf=pass smtp.mailfrom=stackframe.org smtp.remote-ip=130.180.31.158; dkim=pass header.d=stackframe.org header.s=dkim1 header.a=rsa-sha256 header.b=HvghZ8zc; dmarc=none header.from=stackframe.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stackframe.org; s=duo-1634547266507-560c42ae; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=XIaZGXOlzOcFaNSLv1z7QHkqmwxhFrui26Dl781DBp0=; b=ocy48Vb2QzffA6up4as507TOLZbgjxX4SUwO5BuSFUv3o02pWQW4hnUaTt6cYPoE7IkxeufVNbOLE IrxaWlY0oAbjtXOARTx4abXhrz3l5RX4VA5pAPTjAmINukMmp0olfgWedSaiwTIQHDUBBC1NmrRKL8 lGEmYtMejzViivac= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=XIaZGXOlzOcFaNSLv1z7QHkqmwxhFrui26Dl781DBp0=; b=V2e3XTGsOBN6moGA62Gr2DY89bQSjACwrC/aPS+i7ZoNSTflTYwkQcNjK13gzn9EqrUq0gH2seDyj 7UY5JR8UhBHB64WhqgGk+Sia15WUr0Mo9x7ohBc7W27H/3HRKnplGehAUhzIlhkpMMdKZBgRGdPmGC 0w+DJZfRP7j0WtRMxF4RKsn/ymQ7GHuM1ZrpaVNcuNAb6U0T1fAz+R8wh4dylcDZ2PGr2d40SohgWE i4mYke4UiDf9r9zfJ1qVuP2tpC40EP3etGhGubxt043reLSFvSFjB/2P+wockhV4+hPhxFRf4iFF3k Vsn46NMVE8lrZ0r5bAFpM8DDXiRgw/A== X-Originating-IP: 130.180.31.158 X-MHO-RoutePath: dG9ta2lzdG5lcm51 X-MHO-User: ab3de6b9-e4ab-11ee-b1ba-eda7e384987e X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from mail.duncanthrax.net (mail.duncanthrax.net [130.180.31.158]) by outbound3.eu.mailhop.org (Halon) with ESMTPSA id ab3de6b9-e4ab-11ee-b1ba-eda7e384987e; Sun, 17 Mar 2024 22:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stackframe.org; s=dkim1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XIaZGXOlzOcFaNSLv1z7QHkqmwxhFrui26Dl781DBp0=; b=HvghZ8zcwVBm04xeR2HwkcZqtY PEF5vVtSrtXpsRXlc/0i/jR0ilH9U9W6G5JvehfefP85oHgMhqx/JFKX4l0I2UYziJ2xw2BQv75OJ mKmKQVzUPhCPc0sG+Dlygw+IJ9pZMPMyO5b/gOf1WAhXLhWLrKI53JksDyEsrb7X18DrFs6exXwlK 9+fLH2kHfiII6FwNxbHmXSDcttEQMphFvD95FoHB7B1KIMAXg/vyyaT5OcmsSbzWRaxMx5HoytIGq ExvEJbfW+mQph5BXWTyJXvNHNHbYCFEgs2DynEqS2ezeRqSV9xPjJpJ5YHzi301XIxLseZs35OoqR 99DR2EHA==; Received: from ip-134-003-094-010.um41.pools.vodafone-ip.de ([134.3.94.10] helo=t14.stackframe.org) by mail.duncanthrax.net with esmtpa (Exim 4.96) (envelope-from ) id 1rlym5-004C3C-3D; Sun, 17 Mar 2024 23:14:38 +0100 From: Sven Schnelle To: Richard Henderson Cc: qemu-devel@nongnu.org, Helge Deller , Sven Schnelle Subject: [PATCH 4/7] target/hppa: exit tb on flush cache instructions Date: Sun, 17 Mar 2024 23:14:28 +0100 Message-ID: <20240317221431.251515-5-svens@stackframe.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240317221431.251515-1-svens@stackframe.org> References: <20240317221431.251515-1-svens@stackframe.org> MIME-Version: 1.0 Received-SPF: pass client-ip=23.83.223.97; envelope-from=svens@stackframe.org; helo=kudu.cherry.relay.mailchannels.net 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, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org When the guest modifies the tb it is currently executing from, it executes a fic instruction. Exit the tb on such instruction, otherwise we might execute stale code. Signed-off-by: Sven Schnelle Reviewed-by: Helge Deller --- target/hppa/translate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 8ba31567e8..58d7ec1ade 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -1940,6 +1940,7 @@ static void do_page_zero(DisasContext *ctx) static bool trans_nop(DisasContext *ctx, arg_nop *a) { cond_free(&ctx->null_cond); + ctx->base.is_jmp = DISAS_IAQ_N_STALE; return true; } @@ -2290,6 +2291,7 @@ static bool trans_nop_addrx(DisasContext *ctx, arg_ldst *a) save_gpr(ctx, a->b, dest); } cond_free(&ctx->null_cond); + ctx->base.is_jmp = DISAS_IAQ_N_STALE; return true; } From patchwork Sun Mar 17 22:14:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 13594880 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 69C7CC54E60 for ; Sun, 17 Mar 2024 22:16:50 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlymY-0003f4-BR; Sun, 17 Mar 2024 18:15:07 -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 1rlymJ-0003bw-Cs for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:51 -0400 Received: from cheetah.pear.relay.mailchannels.net ([23.83.216.34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlymF-0005jw-M7 for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:51 -0400 X-Sender-Id: _forwarded-from|134.3.94.10 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 06897102D53 for ; Sun, 17 Mar 2024 22:14:46 +0000 (UTC) Received: from outbound1g.eu.mailhop.org (unknown [127.0.0.6]) (Authenticated sender: duocircle) by relay.mailchannels.net (Postfix) with ESMTPA id 6A31D102CFE for ; Sun, 17 Mar 2024 22:14:45 +0000 (UTC) ARC-Seal: i=2; s=arc-2022; d=mailchannels.net; t=1710713685; a=rsa-sha256; cv=pass; b=Qkxu6V+wkb4GTy/nVLHq7VOn88mzyiGRlKaNaN/8D/k1he3nFaL7BRV8bk46Uuv5SHnisI CRfKXR1GjibUBntQOV0zh9+Y6GH9yVJo55fj6mST85deQnGqcHZBteDGGiRmC6ZszVYmWY LEaL2ukqXydkrRYxKLAatfksl3ZxRNQocoGajyMXqjjHNUHIAMEoCzbWF+HezV5PuPZqTp 8oGXRZiogKr2yFedrRYaYwGZDcVnzefJpKvRqIRCyIdq/RzTQ9qHICoyw6F+cuEqoEmaHC wkLel6t21RKRe5Le9ALJ1xL9UtMvMXbbz7FqHLAP4e5rRddt5iGQLMHtBmDeeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1710713685; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=QCLrGkCK+xiEWzkgx+AT2kPkptcNlffHXwOeGyEBSx4=; b=quKtzi6bB9nj01ENI2/yINkDtuhrZiWCJ39cwcq/FqxSTFkeWe/h7IuHOJ1SxN1Dfvu8yu nAs7q55YuqYworE0dD/9BBoFdQQk/wCHGEZRT7VqHaNos83w7HVVcuK4UD5mYR4tVnXV5S wT7d2DCN7bpO2LSlmARPgkGc/Ydhdalm3WHjQtzSUD2bMzAqe/ydFNEa0YMUU0mSsz7s2B VvVUr4EiohO6WRJTVoOll9M4B8pYtFpH4WgUlToNXX55Mwm4ASY3QcRNKjibEJ7nLgg9uS qvAnyLe5hFT5PReogsy/6rXZ/YNDxe+a5Oo366xpEuU75Ut7PDILP2R11cjhCw== ARC-Authentication-Results: i=2; rspamd-76c7995f89-sx7pk; arc=pass ("outbound.mailhop.org:s=arc-outbound20181012:i=1"); auth=pass smtp.auth=duocircle smtp.mailfrom=svens@stackframe.org X-Sender-Id: _forwarded-from|134.3.94.10 X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from|134.3.94.10 X-MailChannels-Auth-Id: duocircle X-Shrill-Belong: 33a55f680decd55a_1710713685922_2844729222 X-MC-Loop-Signature: 1710713685922:2183214641 X-MC-Ingress-Time: 1710713685922 Received: from outbound1g.eu.mailhop.org (outbound1g.eu.mailhop.org [52.28.6.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.111.46.219 (trex/6.9.2); Sun, 17 Mar 2024 22:14:45 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1710713649; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=RHQzGj6AGd2Enxcj4+hTdgKgKjQxBn2hA1KS3VpJobpUvEejkjqZWQd+7LkO0UWZwC/UbLXIGZBf8 b27zS+NBEKy29BSeLmyCYhSdoyLrjcgrI4Xk/esUPEbq0hZ94+v9AoVvv80vZwm1CiF82jUK5Z1NG1 CClyw/VBZ7ZaqkaIgx3S1jqESVt2IQ7cC5pCtp2Y50GyDtGxwxZ/bJPDM/VFA9Fwrv1L6CzIN5qoOi 1rfulG555WK+TTujfLLV2tw8pNvSHVDfvwMDMbJxrSkCQl8i0rFVO6JVbiOM7Y0fnYpjn2j+/xxz6i n3f462+s0eUtaaHmaee3k5gfanaJVgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:dkim-signature:dkim-signature:dkim-signature:from; bh=QCLrGkCK+xiEWzkgx+AT2kPkptcNlffHXwOeGyEBSx4=; b=iNFc8KnDT00Uq92va6nSnYH2q2NRf2JIchT+sOm4ue+4Md/iXs4wvE/Ttej13OcJQnmer/CDd4xlM DYSRWI5CqetGbnPfBgZhDFli43LKBRMuuZ63sDvQL8Xn/f4jF9W7O4cNchSEdImgTz9AkcOUQZg5x9 a1nUISGOfRW0kE3oetpHSMxIe+AbMuvtGhuKCTVzCRJAzYdCU+FaPOXeqv53TMRPrMUCFMKxY4ITsS dE6+UVGzbT3eDM1+lLbC9XQSHFKh35NTk96LSor2x47XqSFyggdfa8YWO1d9lKYq8zG8HvumN9mMBR 1tj4dQaJ4c7ZoY2wGf4jD0Zd++h27ig== ARC-Authentication-Results: i=1; outbound3.eu.mailhop.org; spf=pass smtp.mailfrom=stackframe.org smtp.remote-ip=130.180.31.158; dkim=pass header.d=stackframe.org header.s=dkim1 header.a=rsa-sha256 header.b=UoRa7K7U; dmarc=none header.from=stackframe.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stackframe.org; s=duo-1634547266507-560c42ae; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=QCLrGkCK+xiEWzkgx+AT2kPkptcNlffHXwOeGyEBSx4=; b=GHpkYwBnbFMnkyfwXD5D1WLdr4rLm6PwsBhR+rI71Of5iZEfCEjoztLdqUmuRQ6nFQi4GWf8z+ZAm 4/2wIxj7n9qbkH53qnVptAnmnPzpwf+TkxMQQESw6so7ZY8eof0K254n+pGx/aD5FshJhoI6jAw/AC Hy8lOe/h8+vX7u5k= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=QCLrGkCK+xiEWzkgx+AT2kPkptcNlffHXwOeGyEBSx4=; b=ZYYvsPtJ5hkwziKqC1FKNXe5Qe/Ie3epeDHBqBRskP+s6UgByxkQhCXpPt38DWHlJlRQhkMN/2Xem JXhowewT8NDXv+vcnHEX0QFTJt3vl6m+YqllwgF1zHYgf9/AdtutaEd5NbRjt7qIdgNGgVHeAx8Kfl 4ZSWhjSFfvs3BWfUhScoJX9xySBlesna82lM/yix7ftfu+Y+SQK1hYNytWz4R76BW82nAlT/hiRHGh CPvCxWJdKWaNDzIDYyncgv4UDYOa8G/84xIKBHDDudAYFCMCf8a3gYkMoBs6qm4CvT32FVHmuYqcxY eXPraCQ7+fEZ53OtcrqJ5iLbENOdsXw== X-Originating-IP: 130.180.31.158 X-MHO-RoutePath: dG9ta2lzdG5lcm51 X-MHO-User: ab7347fc-e4ab-11ee-b1ba-eda7e384987e X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from mail.duncanthrax.net (mail.duncanthrax.net [130.180.31.158]) by outbound3.eu.mailhop.org (Halon) with ESMTPSA id ab7347fc-e4ab-11ee-b1ba-eda7e384987e; Sun, 17 Mar 2024 22:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stackframe.org; s=dkim1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QCLrGkCK+xiEWzkgx+AT2kPkptcNlffHXwOeGyEBSx4=; b=UoRa7K7U1pg/IKeFyQy/zFsBEW 58aKsXkkWV0u5VD/B5HV0JmvI596dXx6FQWFyRhX3v0Vlu82t5V3E00lYjFSgldkH/k6a1Fta59B+ jQEanY6gHDv+Zu2pTflnYdpHfWmOUFtpEnuRZifd3U05cby2tELtLCYXJeT/foeEaZRnNDCvxrtvi Z+g9tqp4tqLf84Fft0WP0Sg455/1r81HJXsg20qEZeWYK01fy2pDXXyifVvTvBEClHWRKT2IMQ8t5 FxdGucz6DhNRgC6mIvBjCM3n+UVs9uWG+uDCeQ/ZD7sUDInogm4TMdPzehRlpj5BGyHTvbhCW5t4g GP80jXvQ==; Received: from ip-134-003-094-010.um41.pools.vodafone-ip.de ([134.3.94.10] helo=t14.stackframe.org) by mail.duncanthrax.net with esmtpa (Exim 4.96) (envelope-from ) id 1rlym6-004C3C-17; Sun, 17 Mar 2024 23:14:38 +0100 From: Sven Schnelle To: Richard Henderson Cc: qemu-devel@nongnu.org, Helge Deller , Sven Schnelle Subject: [PATCH 5/7] target/hppa: copy new_spc to iasq_f on be,n instruction Date: Sun, 17 Mar 2024 23:14:29 +0100 Message-ID: <20240317221431.251515-6-svens@stackframe.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240317221431.251515-1-svens@stackframe.org> References: <20240317221431.251515-1-svens@stackframe.org> MIME-Version: 1.0 Received-SPF: pass client-ip=23.83.216.34; envelope-from=svens@stackframe.org; helo=cheetah.pear.relay.mailchannels.net 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, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Otherwise the first instruction at the new location gets executed from the old space. Signed-off-by: Sven Schnelle --- target/hppa/translate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 58d7ec1ade..a09112e4ae 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3777,6 +3777,9 @@ static bool trans_be(DisasContext *ctx, arg_be *a) } copy_iaoq_entry(ctx, cpu_iaoq_b, -1, tmp); tcg_gen_mov_i64(cpu_iasq_b, new_spc); + if (a->n) { + tcg_gen_mov_i64(cpu_iasq_f, new_spc); + } nullify_set(ctx, a->n); } tcg_gen_lookup_and_goto_ptr(); From patchwork Sun Mar 17 22:14:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 13594872 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93C4DC54E60 for ; Sun, 17 Mar 2024 22:16:27 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlyml-0003hs-Fz; Sun, 17 Mar 2024 18:15:19 -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 1rlymW-0003ei-AV for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:15:05 -0400 Received: from bee.elm.relay.mailchannels.net ([23.83.212.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlymG-0005lQ-R2 for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:15:00 -0400 X-Sender-Id: _forwarded-from|134.3.94.10 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id F31B92C2B38 for ; Sun, 17 Mar 2024 22:14:46 +0000 (UTC) Received: from outbound5b.eu.mailhop.org (unknown [127.0.0.6]) (Authenticated sender: duocircle) by relay.mailchannels.net (Postfix) with ESMTPA id 587B72C2A9F for ; Sun, 17 Mar 2024 22:14:46 +0000 (UTC) ARC-Seal: i=2; s=arc-2022; d=mailchannels.net; t=1710713686; a=rsa-sha256; cv=pass; b=SdOQe0BK2GCO6NMeFQARqZKZoxmEhJfBDMl4oRhE4WRrlRtmzU5GQ6EWQ+TzpZjqTREKbe csLgz2sSy01UR0xxBfrXX6P9TkCCC0AaubMnZlg9VXlFdJwnZpm6/DufewaQOyvxmWk6U6 VlyMXU5SoL6/9qu+QFc5qvQfyjMPuVvJ1oC9byQgpHEu5fRrB8rxqPBunNNiVTQVXnCEjp F4WVsoi+vDRjvCia+B5/yDK8yvy/XZxqLoDUp/a+jTCQZzZ9ixnV5rHdUGmwelmymwi/yM QG1N4GQJlURAsyrQjLQbYw79iXVjcIhY5qLa5TSTVq2xaZxJ4IrO+LxQnTupuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1710713686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=+lH6+GK+Ys5CVbB/17/8LFUsWDuUB6jySmdupLQ/9Wo=; b=uGauR9kLZi6oqLZIs1Bmjkks6nhOTXUoJTPYe3LEvSA/XpHGqbP9bFSKQux+KAm1ssDEbt HuA8nbFXO/qUNvheufU2YzT3AsTSjVdYipEPIb4xVihCc2XLMIatDG1/HqArTD0ivpYE0n Oeg+/wvWwnKVKJ4WQXLttUUGKLj0Fg0+0HchPqEakIbDKdiLN2/k6BW4bSRpsW/8jSElkY CvldzsAl8AC+OvyjB9EOH9ZMoWDjGWvvj1dLBkJemmeyngOGAts0/gEAXVaIIBsji+48dV vSR9BBWuZ4WFjr0or7S1W87hj4b1BOGMUkIr3kvViCK9klgBbVri/CksACpO6Q== ARC-Authentication-Results: i=2; rspamd-76c7995f89-2qlcp; arc=pass ("outbound.mailhop.org:s=arc-outbound20181012:i=1"); auth=pass smtp.auth=duocircle smtp.mailfrom=svens@stackframe.org X-Sender-Id: _forwarded-from|134.3.94.10 X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from|134.3.94.10 X-MailChannels-Auth-Id: duocircle X-Ruddy-Print: 3fc5bb9255e65364_1710713686855_2028950366 X-MC-Loop-Signature: 1710713686855:3439411052 X-MC-Ingress-Time: 1710713686855 Received: from outbound5b.eu.mailhop.org (outbound5b.eu.mailhop.org [3.125.66.160]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.122.162.95 (trex/6.9.2); Sun, 17 Mar 2024 22:14:46 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1710713649; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=lA2uyPhwjVgENehJ2HhPO1ZAe8fE7mLDpc4e4BuM01L/HFP2r0VoF+nGflBGqZzEnd0FZixl1IgKt hvIAv+YrAxXBXVmnJF0fJcAx/B3dz6GVBd5cgUwb5U7i8c1Yu7IqQK0QraHiAz4M+1AG5uGbLEMEZI +qH93JbvyFzAOwEj4Nyi3w65u18RKKVUHpeR9tUBt5zxLuthCla5QZucM9sm8Ru8lmoRtQj7jhkjGl 0oUHf3iLMwR1O6itwXOh3A+cj9NJ0zoXPacJIEYsNeYBDxfYR0wyFloUTIKANTF4jnVjsixFpSZaq+ ZD5utuC71F9/T8FblOecDPfk0+VcFWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:dkim-signature:dkim-signature:dkim-signature:from; bh=+lH6+GK+Ys5CVbB/17/8LFUsWDuUB6jySmdupLQ/9Wo=; b=O0vw34Wf6GqylLQwAHJ1c0qWLqDiNOlUh38bMNZ7hhNyOyVbldea13Ngbwc4pLzRk8Ljz7gvgTa5Q T/Pt2v9yP1uuba6kvxhahhOnyDYfWSgXzbreRJLdse4qpLY4T34LN1/gZ1orOWJ55E9ORUjfFwB0NP V3iY4ZXQJMXsqsBsV3sYzq/6s6ehNF3ifb1fRhrHKFtoHzEdwijLQyitrRQ87+YsPKkfp4nxlu+nPa xehQOQcdUsP3IrSyr7D2mFionEH5MHUDadGmG7mc4rQR8f15Kp75KeMlIYOeLc85h8ktib2T7JKpM9 Q1GRZjFk/AKOlRSAXJSJ2YSnoIVxgew== ARC-Authentication-Results: i=1; outbound3.eu.mailhop.org; spf=pass smtp.mailfrom=stackframe.org smtp.remote-ip=130.180.31.158; dkim=pass header.d=stackframe.org header.s=dkim1 header.a=rsa-sha256 header.b=Nok1zDPs; dmarc=none header.from=stackframe.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stackframe.org; s=duo-1634547266507-560c42ae; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=+lH6+GK+Ys5CVbB/17/8LFUsWDuUB6jySmdupLQ/9Wo=; b=crASQZzmUSIyOlOFoQDVfQuP7ed+OBeNdV/rfn4AFinUUZrMXNkXYLQ1XCcRIDEWRpkzaxd0r6S5d wK6xRBoAjgdaf7EkGedlPkm4k4npP0P/W4qBNMa09CyCiJRMJsNzjg3fv/3FjjtkBMCjr0hi2WlMe8 Y7hItYmke6Lf33mw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=+lH6+GK+Ys5CVbB/17/8LFUsWDuUB6jySmdupLQ/9Wo=; b=q7/uN2MvSJw0IebJBdqjuvvdMXuJ8MxVF4Aykmx67pE/gkDZRVKwXWr9bITdYPmoinoxlmllCYESz R11e0nHKaDvsOCg/DCcB6pyx6kwEuaSlzvpXwLbviiO0ZgO+b/Y9OL11C2osO7rhShjgPxIiMIKgoP kMhRqGE4faRfoZ4Sfe6x+mkvSF3u7Fpwt/yPME8AQuqlyfB3plMvNeYvVf6UElW04qSzb9p2XUEk5n NTqctHl3EdVoi/iRPWtE2CrOQJ4P2gKZ58o1j7ZfxLMNh2XbeeXZjyEPbDQg0bx7rUGrmX+fM9ZI6W 2Ct2mazLSCdtOqZYGdy27oeVa5ze05g== X-Originating-IP: 130.180.31.158 X-MHO-RoutePath: dG9ta2lzdG5lcm51 X-MHO-User: abb9060d-e4ab-11ee-b1ba-eda7e384987e X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from mail.duncanthrax.net (mail.duncanthrax.net [130.180.31.158]) by outbound3.eu.mailhop.org (Halon) with ESMTPSA id abb9060d-e4ab-11ee-b1ba-eda7e384987e; Sun, 17 Mar 2024 22:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stackframe.org; s=dkim1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+lH6+GK+Ys5CVbB/17/8LFUsWDuUB6jySmdupLQ/9Wo=; b=Nok1zDPs3K9q5kVpd9EnfOiGnn n7j+vdAucdOw3/p6SXX7/egim1VBOd9zevuicxS0c2GIsoXhttsx8zb91S0hF9wGFXmq/OxaN49X3 XA+xuJwI7XExr3FuMcwqU1Ie5fziHIZcfEPvXY9jjX9s1UBp+89JQ66N627XuvKoQqVH1ptEqxbwL grAOirndgmdboB5Vsf5O4R+6uDoJhl/X7b15k6iZ0ih4t2MGERls3KDfqzm4a/GEtC1/1Q+EDzK+M avg7ikYjip1JX2+Uc29gqsTL+AlPedQAVgPiXO/g627IyeMgNWjeHXKPuplHChmI+GxJO3qIrAesi Hg9uNKCg==; Received: from ip-134-003-094-010.um41.pools.vodafone-ip.de ([134.3.94.10] helo=t14.stackframe.org) by mail.duncanthrax.net with esmtpa (Exim 4.96) (envelope-from ) id 1rlym6-004C3C-2H; Sun, 17 Mar 2024 23:14:38 +0100 From: Sven Schnelle To: Richard Henderson Cc: qemu-devel@nongnu.org, Helge Deller , Sven Schnelle Subject: [PATCH 6/7] target/hppa: mask privilege bits in mfia Date: Sun, 17 Mar 2024 23:14:30 +0100 Message-ID: <20240317221431.251515-7-svens@stackframe.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240317221431.251515-1-svens@stackframe.org> References: <20240317221431.251515-1-svens@stackframe.org> MIME-Version: 1.0 Received-SPF: pass client-ip=23.83.212.14; envelope-from=svens@stackframe.org; helo=bee.elm.relay.mailchannels.net 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, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org mfia should return only the iaoq bits without privilege bits. Signed-off-by: Sven Schnelle Reviewed-by: Helge Deller Reviewed-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 a09112e4ae..e47f8f9f47 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -1962,7 +1962,7 @@ static bool trans_mfia(DisasContext *ctx, arg_mfia *a) { unsigned rt = a->t; TCGv_i64 tmp = dest_gpr(ctx, rt); - tcg_gen_movi_i64(tmp, ctx->iaoq_f); + tcg_gen_movi_i64(tmp, ctx->iaoq_f & ~3ULL); save_gpr(ctx, rt, tmp); cond_free(&ctx->null_cond); From patchwork Sun Mar 17 22:14:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 13594870 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62EADC54E6A for ; Sun, 17 Mar 2024 22:16:27 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlymg-0003gf-VP; Sun, 17 Mar 2024 18:15:15 -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 1rlymQ-0003dC-AT for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:58 -0400 Received: from chameleon.pear.relay.mailchannels.net ([23.83.216.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlymG-0005lP-LA for qemu-devel@nongnu.org; Sun, 17 Mar 2024 18:14:57 -0400 X-Sender-Id: _forwarded-from|134.3.94.10 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id F3B58761E77 for ; Sun, 17 Mar 2024 22:14:46 +0000 (UTC) Received: from outbound1.eu.mailhop.org (unknown [127.0.0.6]) (Authenticated sender: duocircle) by relay.mailchannels.net (Postfix) with ESMTPA id 5BC1E761E4A for ; Sun, 17 Mar 2024 22:14:46 +0000 (UTC) ARC-Seal: i=2; s=arc-2022; d=mailchannels.net; t=1710713686; a=rsa-sha256; cv=pass; b=0VM0dIhrsRFpgvQu6yW7jTwNCMvI4AKVSBq3whbBPBlSwqAoo4xivDvagnOv5cpmo/7Hlg U5AzuR63RiJQ0bzHcJ79tWmkT97vRMBwPefWEeFhIMGkgS9rQh8SiW+dY1fmmq56StNtx+ QEIKzrWoAu5E/fL2Oiy7IETWLo1xNYePfcfwE9woL8iCH63b91jxaCf0p1gBUKsDxlFMLr DPCc86O/MxydJAeSXuRoWMvz7rkLOPPSJfSk2VcknKlVaXoHxMIGZ8RwSiWsKCM9w6d1wF co8ECHveGGFCi2Xkmgj/6oALicOe6q5dcxOOcyjENz7VR7OUb/4dUwzjhMiJaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1710713686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=+0y/IAZ6c4dKro475ZEMQZ7X/H4z5Je9zSU3bsCWN8Y=; b=dFwmL6+4cL3j8KYN/g7INJN6vheC1U1P9RGyGFTJNkEZv9sxpmouyhx0GNZzmCXNqDIATc R5FfbXFVfdnKoG/oId/Io1r6YnBRyOa1MwgT9tJhJVYbycnD/Njxrv1+ZDaZjHeKfD4/E9 EX+BLOngTmWAq1pWd46/YxgIH7SKhd6j+K4ZqhMlSpP2XGahj1gsPgCRDKoQH+ac+GFIHe j7ssbVqLdH5s59OtPQthRGsU3x9R/eBhPefV9bP2NZRmpCGdHejD/0xalUjKnJ1btQert5 Py1/c2BZmRgtBQ1LYDnXu2mujBIwJ0jz6ES8tH2z1bqVB85OW+bHhQrM6dDIdw== ARC-Authentication-Results: i=2; rspamd-76c7995f89-sx7pk; arc=pass ("outbound.mailhop.org:s=arc-outbound20181012:i=1"); auth=pass smtp.auth=duocircle smtp.mailfrom=svens@stackframe.org X-Sender-Id: _forwarded-from|134.3.94.10 X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from|134.3.94.10 X-MailChannels-Auth-Id: duocircle X-Shrill-Turn: 17943eb63547c9b2_1710713686866_2144782116 X-MC-Loop-Signature: 1710713686866:3139319556 X-MC-Ingress-Time: 1710713686866 Received: from outbound1.eu.mailhop.org (outbound1.eu.mailhop.org [52.28.251.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.111.46.219 (trex/6.9.2); Sun, 17 Mar 2024 22:14:46 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1710713650; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=M8SnVcdiOOUoszdAzBkUFQs3HEWCiTIUwoiSR6y67vsQdZ9vjEAqv7IzDq3qFHh2jfVkhSCRT4ndk q9PRObaW5FPMXs3n/HGEgDMp+pwZ34X3jq+MfA42OMwQ53ido82YEllsQ1AAAzIfMyxNyTuX/wRYFB 0OIc3oyUtQ1A8xg2j49Pf+ZOa5tTglHkjCVSkOzm/gD5MXlxWFmfYqfdZqsWkl+QkHNQ5SrqHyriDu QggnWBQxzJFxEZH5qrdTwyMurjHpjJ8m5V9n9QWy7dBkxY4FVIyoHOe+O4N+wkS7nugTouKaBfo6ft RV7SfGy2TZGRhOBtG1BS/GszGtB4wzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:dkim-signature:dkim-signature:dkim-signature:from; bh=+0y/IAZ6c4dKro475ZEMQZ7X/H4z5Je9zSU3bsCWN8Y=; b=Y+6DloYqIcWGu0wjuTEGf/9pArTX8e5WVwwAjnpSpTYwK2QXhS1xyjEtvewyj9Y+DJZ7vMjz2jpXM C33nPgaNdOwkNCoPwm/e18f0TkmP4uHCKNFUDieSnXTJk7gAvYFSFr2Mydhrk2HX5ZOImo6pxSQbPX qzZkFMNZQhjKrU4PQ02SZIfoI578XzdCPFim10iJNB1nFR2xmux+z+NQbK7/Y3eQqEhjrDtc28tNch hpK8A+KRWBL/Ci+4vopi+4SiiOUKNvj8FvrYh5SlQRj1fzYpO0PKh3b3m8MsxJjlDafpksgI91LwI0 VdnJT2GTE7Wl+kMLJ5DH9iRAFxkIPRg== ARC-Authentication-Results: i=1; outbound3.eu.mailhop.org; spf=pass smtp.mailfrom=stackframe.org smtp.remote-ip=130.180.31.158; dkim=pass header.d=stackframe.org header.s=dkim1 header.a=rsa-sha256 header.b=gA9bXiLm; dmarc=none header.from=stackframe.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stackframe.org; s=duo-1634547266507-560c42ae; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=+0y/IAZ6c4dKro475ZEMQZ7X/H4z5Je9zSU3bsCWN8Y=; b=kJejgOlgowX+akysg6t17OlB1Xplyh49HsNsCLtbEnUJPnYPgy/D3ryFzxGyt+pIRaZiBfUULBT+Z yKdNjN+iaYEkKFeSSqNpPnqbARSB60c4DcGFAAX0Dfy0IiqB/+H40AV6kd2i5euOKW2JqC87bYD6L6 0e9g6q5Aux293mbY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=+0y/IAZ6c4dKro475ZEMQZ7X/H4z5Je9zSU3bsCWN8Y=; b=ZcazcdijO+K0PF6y606sDlXKhMuHhnW+EB8OhmddUr8VxHiCDIBqeE2lTs1pcNPofPIW4AXNMMNlJ yQCzsPuQOmdlHlciXfg54XpzWn4g0rbfhI57lff/R+HpzXcQf6EO1zPusDOFCzFFfxCw7Y7IfFzWQZ 24C3thb015MNq4hJv75qNJK4iZ9ByBGTN9ZAWHloStiY3+Xa7hy8DzM+TdXcVGywrRNTyDc8GMXm0E Mn3kdKF10wOtxgaHk6VY/JAMDsPyl3YfF0fLDEnh9nStRf0IZmTnaLyA9SNBQ3f7aRErVmgaHfhQXS qwVCUNtbXDPhyFNsKd7p6rMGZs1izCA== X-Originating-IP: 130.180.31.158 X-MHO-RoutePath: dG9ta2lzdG5lcm51 X-MHO-User: abfaec1f-e4ab-11ee-b1ba-eda7e384987e X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from mail.duncanthrax.net (mail.duncanthrax.net [130.180.31.158]) by outbound3.eu.mailhop.org (Halon) with ESMTPSA id abfaec1f-e4ab-11ee-b1ba-eda7e384987e; Sun, 17 Mar 2024 22:14:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stackframe.org; s=dkim1; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+0y/IAZ6c4dKro475ZEMQZ7X/H4z5Je9zSU3bsCWN8Y=; b=gA9bXiLmj3diV4nHEWrVeGXnec dRfLrGfpoHrzvGDHnJI7O43Kf+WauQlWBBPNeRfnZFMN92oAjy0KC+RCOs2koCyMauWLMK4UCyg9C STyoje6zLf0MSztRjy5yK7EosIU8DgyN6Uaei5N7knIg6wGV5JU97zbRgTNHf88u9UaGDGG9oNjEm St4UUS/S0gy0LRs1vZ3YV+aZxxqIMsJRbapFrzNkZQLaFeuTkOoEC0JgiaxwLavDxD4X9dqkftwjG cNKK38N2g5gKuYwFX4PEv5SzBta/7QQZkwsmtRxuE3YH4M4TESVqjKATlufEceVxiDLS6qg2FASED oHgggjcg==; Received: from ip-134-003-094-010.um41.pools.vodafone-ip.de ([134.3.94.10] helo=t14.stackframe.org) by mail.duncanthrax.net with esmtpa (Exim 4.96) (envelope-from ) id 1rlym7-004C3C-0f; Sun, 17 Mar 2024 23:14:39 +0100 From: Sven Schnelle To: Richard Henderson Cc: qemu-devel@nongnu.org, Helge Deller , Sven Schnelle Subject: [PATCH 7/7] target/hppa: fix do_stdby_e() Date: Sun, 17 Mar 2024 23:14:31 +0100 Message-ID: <20240317221431.251515-8-svens@stackframe.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240317221431.251515-1-svens@stackframe.org> References: <20240317221431.251515-1-svens@stackframe.org> MIME-Version: 1.0 Received-SPF: pass client-ip=23.83.216.33; envelope-from=svens@stackframe.org; helo=chameleon.pear.relay.mailchannels.net 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, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org stdby,e,m was writing data from the wrong half of the register into memory for cases 0-3. Signed-off-by: Sven Schnelle Reviewed-by: Richard Henderson --- target/hppa/op_helper.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/hppa/op_helper.c b/target/hppa/op_helper.c index 480fe80844..6cf49f33b7 100644 --- a/target/hppa/op_helper.c +++ b/target/hppa/op_helper.c @@ -281,17 +281,17 @@ static void do_stdby_e(CPUHPPAState *env, target_ulong addr, uint64_t val, case 3: /* The 3 byte store must appear atomic. */ if (parallel) { - atomic_store_mask32(env, addr - 3, val, 0xffffff00u, ra); + atomic_store_mask32(env, addr - 3, val >> 32, 0xffffff00u, ra); } else { - cpu_stw_data_ra(env, addr - 3, val >> 16, ra); - cpu_stb_data_ra(env, addr - 1, val >> 8, ra); + cpu_stw_data_ra(env, addr - 3, val >> 48, ra); + cpu_stb_data_ra(env, addr - 1, val >> 40, ra); } break; case 2: - cpu_stw_data_ra(env, addr - 2, val >> 16, ra); + cpu_stw_data_ra(env, addr - 2, val >> 48, ra); break; case 1: - cpu_stb_data_ra(env, addr - 1, val >> 24, ra); + cpu_stb_data_ra(env, addr - 1, val >> 56, ra); break; default: /* Nothing is stored, but protection is checked and the