From nobody Thu May 16 23:26:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1712871134174249.06720008974082; Thu, 11 Apr 2024 14:32:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rv21T-00020V-Mr; Thu, 11 Apr 2024 17:31:55 -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 1rv21Q-000206-8W for qemu-devel@nongnu.org; Thu, 11 Apr 2024 17:31:52 -0400 Received: from mail-ot1-f53.google.com ([209.85.210.53]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rv21O-0003bJ-4R for qemu-devel@nongnu.org; Thu, 11 Apr 2024 17:31:52 -0400 Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-6ea2ac4607aso177056a34.3 for ; Thu, 11 Apr 2024 14:31:48 -0700 (PDT) Received: from localhost.localdomain ([2601:47:4286:35e0:7d2d:6c94:a5ed:56f8]) by smtp.gmail.com with ESMTPSA id 17-20020a05620a04d100b0078d693c0b4bsm1503354qks.135.2024.04.11.14.31.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 14:31:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712871106; x=1713475906; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9eTKB9jKB7nvQuM5iHphykYJr3NXxpvQe5kGQR0xZlA=; b=XHlNNKwM2vp+pG+xSsaOW+M/juQtAmXDEp8rXRgy8nYqJnyZtpLrpPqZFqn/eHfcmJ eALlxe9JNIGp4MXL+T++Z9rF/WTEpm1u5rLc4b1GfU8YrGQyuThFdzAn1XnYcGyObWDR GAjgPMq3h3X2ZhiLBX5n9o4+bYsD58EOXIlTufsA2SGFE3/scRF38XHRq4WVPhXwxMke yfo2AoGBf9lmTk7Rh+up28ZVHpXGIyU72qEMl+d8erb2QqjBDiFISG81OctRh0vNsTa/ XjgpLAMk8Ti1VSC1JwEgOxwaOhK+tPZmmi+T1Ul04FgYvzjYUTFfPu0XTOouk9wOy6LN wioA== X-Gm-Message-State: AOJu0Yx5s6bu3qaJgzh9EeOXVoytgdf+Egflq1DgTIzxWEUfS33IA/Yx z4kTc9FTqogMtjOYOIxI0umzN5Y7/1Ybq5HmAUYuZqKdmgs3yTnuT/F0VNdo4Rs= X-Google-Smtp-Source: AGHT+IEvGjaH7s6Vy8ZYKdcRKtOr9RzXYgUc+U8iBFGmT/I+cpmuTQEVXQLmC2HIb6AH04geo1rT4w== X-Received: by 2002:a05:6830:1144:b0:6ea:fd0:44ec with SMTP id x4-20020a056830114400b006ea0fd044ecmr806302otq.21.1712871106697; Thu, 11 Apr 2024 14:31:46 -0700 (PDT) From: M Bazz To: qemu-devel@nongnu.org Cc: Artyom Tarasenko , Mark Cave-Ayland , M Bazz Subject: [PATCH] target/sparc: resolve ASI_USERTXT correctly Date: Thu, 11 Apr 2024 17:29:36 -0400 Message-ID: <20240411212936.945-1-bazz@bazz1.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=209.85.210.53; envelope-from=bazz1tv2@gmail.com; helo=mail-ot1-f53.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1712871135175100001 Content-Type: text/plain; charset="utf-8" fixes a longstanding bug which causes a "Nonparity Synchronous Error" kernel panic while using a debugger on Solaris / SunOS systems. The panic would occur on the first attempt to single-step the process. The problem stems from an lda instruction on ASI_USERTXT (8). This asi was not being resolved correctly by resolve_asi(). Further details can be found in #2281 Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2281 Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2059 Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1609 Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1166 Signed-off-by: M Bazz --- target/sparc/translate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 319934d9bd..1596005e22 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -3,6 +3,7 @@ =20 Copyright (C) 2003 Thomas M. Ogrisegg Copyright (C) 2003-2005 Fabrice Bellard + Copyright (C) 2024 M Bazz =20 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -1159,6 +1160,7 @@ static DisasASI resolve_asi(DisasContext *dc, int asi= , MemOp memop) || (asi =3D=3D ASI_USERDATA && (dc->def->features & CPU_FEATURE_CASA))) { switch (asi) { + case ASI_USERTXT: /* User text access */ case ASI_USERDATA: /* User data access */ mem_idx =3D MMU_USER_IDX; type =3D GET_ASI_DIRECT; --=20 2.43.0