From nobody Sat Nov 29 10:15:28 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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; arc=pass (i=1 dmarc=pass fromdomain=accesssoftek.com); dmarc=pass(p=none dis=none) header.from=accesssoftek.com ARC-Seal: i=2; a=rsa-sha256; t=1764301744; cv=pass; d=zohomail.com; s=zohoarc; b=Bl4qDOxSw2TUHDul84pqvDUC81YZxANy851Lysfpq3kg03jd2JpPb/bWqNOOcCrTK9HYZxIVSCnYl2kOW+zwiwF1vJRcQe2kAtNeSUVCRgFIANIL0S0dwA+fixDhHU4XJYaLcs5VdOAoNlaBO4A7/Bb/HbR0ov2Tz9bnHcTwCtM= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764301744; h=Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=XYmZhaY30cIeDp7as3nEWH+6zMXQ062IlbnyM6z+ZFc=; b=hIucVUPO4lCxNbKjoMY+3U+Dy0vd4jwsrlxUJrz3cAZT9o5WEArlG5t1swHZFm5RwrTEXkgHeMK1HZYJcKoOXHVmrGK66E0uxXY9Bo6+QZmSzgxQt3luR39l6btTpNnrxoR2jc3MsPtlpXr0I55cTPemrMdCyBh9cO5dtRYcnT8= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; 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; arc=pass (i=1 dmarc=pass fromdomain=accesssoftek.com); dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1764301744125276.34044754922627; Thu, 27 Nov 2025 19:49:04 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vOpSs-0001WX-Re; Thu, 27 Nov 2025 22:48:10 -0500 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 1vOp1G-0008OW-7P; Thu, 27 Nov 2025 22:19:38 -0500 Received: from mail-southcentralusazlp170120001.outbound.protection.outlook.com ([2a01:111:f403:c10d::1] helo=SN4PR2101CU001.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vOp1E-0000HC-K7; Thu, 27 Nov 2025 22:19:37 -0500 Received: from PH0PR20MB6156.namprd20.prod.outlook.com (2603:10b6:510:2a1::7) by MW4PR20MB4545.namprd20.prod.outlook.com (2603:10b6:303:132::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9366.16; Fri, 28 Nov 2025 03:19:31 +0000 Received: from PH0PR20MB6156.namprd20.prod.outlook.com ([fe80::ae6e:9fbd:b45f:edac]) by PH0PR20MB6156.namprd20.prod.outlook.com ([fe80::ae6e:9fbd:b45f:edac%6]) with mapi id 15.20.9366.012; Fri, 28 Nov 2025 03:19:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D6/6D1g+TnLesHyWY7uw4043ebi2KsJ0HGY5hmUclL6CbRCHdLtWqaPs3yJTcI+XgnvpB6d6wZnPoucRvxFJp10wQnpvbWbUTkPxOgOpdeFws6rez9g9bXZPJ5copZoLTwu2ePw3+jWQZDlLi/gU6RsnCH+ZhhbhEFMDLp5zxhls7Bk9efqEf2x4h5yOLsHzwKIQtG93fHbTd4SKYDN2ej5Yg9d6doC+7kl0dWGtyYo1AyvYTcE0fGKb/bQ+xHFFSji+0QOZH3U3dv0qBsH0a9TfujpPmLsfgYHe3hn/co2aZUjeXEnHQpXmbAbpymF7G3ykW7CyYUL/K9aPd1GuPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XYmZhaY30cIeDp7as3nEWH+6zMXQ062IlbnyM6z+ZFc=; b=H6sEQyN6qkUqsr+87ZOtdfi4Anl12YYu9Od3KZcpkSDFsKRRRiC7CmQrwEHuhIYmw2hUqD3LnFkkUix1cWgCO/IUgCCYaeYP97a40WQA8mHh+tnukibq3pCMOzc4WXPeVOFO++shPI4ZH+IfwqecwH6ZISdG8ajwaxuUqag7thHgsX0uO+tJ/u6uOfRhC1WH50Dq08ttXZLDg8HUo3zHH6nNxl2lfkLpCUmr1B5Pskw7udg30xC5cTizJVEUf40rvv4srHsR76s9cExRfcNaaQwxKxkhMRBpA+o/JxGUEWf79jBc9FBm/54upGat9oJ63CnZ0eu9mjBFvpbYg71BSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=accesssoftek.com; dmarc=pass action=none header.from=accesssoftek.com; dkim=pass header.d=accesssoftek.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=accesssoftek.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XYmZhaY30cIeDp7as3nEWH+6zMXQ062IlbnyM6z+ZFc=; b=R7LNqL9FpXia9Ux8WG7CA93kp9x+AazViUt5ut5Pb0ZJgHWk55E9ME3FwKInqj4PTzkY4NphgQ3zauR0DJkzat6JnmgppDYnYhMdo5ZC/jBMDh0UgvgZ3TJ+EoJzKqfUrAN03z4VXZ10HOK3B+OXqj1EeH63dW5MhrwzfDD0BQYF5CihxfdDfNhxtxOybkpqARsjnVrog1jkESBeJ5/WAJjVEg+YFLz+F4VjUAAhglVwamR/cbbLzHf1JME16K6x0zmyLCGjZkKYsZlJQUvS12kNiqZHOhz/IaFY0yq0OkawbMuJmEfeZ1FbUnpku9+fv4ULrwW7O1FoBGsi6ENe7Q== From: Harald van Dijk To: "qemu-arm@nongnu.org" CC: "qemu-devel@nongnu.org" Subject: [PATCH] target/arm: Fix assert on BRA. Thread-Topic: [PATCH] target/arm: Fix assert on BRA. Thread-Index: AQHcYBXPmcExBwzAIUS/4iD/3O4YOQ== Date: Fri, 28 Nov 2025 03:19:31 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=accesssoftek.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR20MB6156:EE_|MW4PR20MB4545:EE_ x-ms-office365-filtering-correlation-id: 60b8b9a3-3a77-4069-31e3-08de2e2cf23d x-ms-exchange-atpmessageproperties: SA x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|10070799003|376014|366016|1800799024|38070700021; x-microsoft-antispam-message-info: =?utf-8?B?YmtPZGJBbVZYZHJTdkhGcTE1TURsSkE2UFA3Uk1jVGY3SnRMRzFueFRjYWJH?= =?utf-8?B?MmNkQ3huOGNkZ1RBWVpiNmlzZGo1cDlTUGpkVFFleXo2dTd4S1JPWFdjalpX?= =?utf-8?B?clVxUjFlRld2V2FVNnhuNTNYSVhhTG1lZnhWSVVSRzZ3eWc1SGczNGh1T3pK?= =?utf-8?B?dWlYRVdpaC81YjVXYllVbkZsK09RQzlCcTV6ZnBuYTF0UFk0am1LWWJsV3dz?= =?utf-8?B?c2g5eDFub1J2cU9Kdlg3elRnb1FG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zbLfn?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR20MB6156.namprd20.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(10070799003)(376014)(366016)(1800799024)(38070700021); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?YTY1TnNWNlJycnV4NTdvQkVUUzF2czRVbnovZFhaa1JrT1NReDJCenc4Vkc0?= =?utf-8?B?MUhacWFFZTF0Qmo2Nml1a250Qlk4dkFuK21oNlRMS2dmcm9pRFdOd0g0T1Ri?= =?utf-8?B?OWlEL0Vxa1BoNlN3d2NXLzVQZHZUMWVLcEZWUmxkTjU1VlVKcWdKVzZHSmdJ?= =?utf-8?B?Y2U4Sm5IRVZpai8rNzlrUWVRMlZmYXJrVmI3cWxVcytoS1I2eWtvWnQ0NjRr?= =?utf-8?B?VHdEbVJXeFZVaUJuVU1MUkMzeVVKWjY1YVI1b21TODRMWTBvM1hXbFBIUlFF?= =?utf-8?B?VHp6b01nR0RwVmZlQUZ6enNteWlFSTdPT0tKTk5qUGh5WHIra1NmdUpKUDZI?= =?utf-8?B?Nm5QQzBSYS9udC9NMGVHNHNZYnZ2RzZjZGRQTkN4RWpJdlNHdGJUODZacTlN?= =?utf-8?B?NWQ3SHEvZjlVYTY3ZTE0RnZlQy8rVkcwT09RNXdaaDVoYmNRbUdRSTBwaHc4?= =?utf-8?B?T1JYTmE4MzdRUlBOYUkvNnBINCtwc1dyaHhFZ0F2VmpQRVZ5TUNJMWVRYzh0?= =?utf-8?B?QjlaUlFNdG9ydUxxMldqb056TkVIRHpOQ1o5SVdzdXpiOEx6dFhPNnNNMW15?= =?utf-8?B?M3hwd3h5WEYySkMyeW1Cb1c5TzhmUnVYTlRCT1RuNnVYTnVsN1ZUbVhLQWV4?= =?utf-8?B?bWRQNjdsTGU4OWxlTGVZY0R1UWlFVEhkRk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N1R1SlQ2cUN1Wk43YW82VDBoZ0NzMytSWGRINjRTN2VxQzhkUWpk?= =?utf-8?B?MDlxRnJZbFB5WklIcnNiRXAxTy9IQ2tYdnJTaXJOYWdPQnoxOE5UWVVUNkt0?= =?utf-8?B?c0MzQWhwZlBhb3FnTmNwSzdwSElaYWNCeDNickZkWHAxTm0zc0l6ajFnQndF?= =?utf-8?B?eHNGeEg2anI0TXZRMnV0bFZUWGxDcGpjcnNzMCtDdk5XYjNvbENsZHgybDNl?= =?utf-8?B?UjIvc1Q2eU54c1BWZGxWaW1ic0pXVE1oWDFGQmJOWnV1QUtJbmRlOXZzQ0hZ?= =?utf-8?B?aGdNL2hrN0ZWTm53dUg5ZjVzK2hDODZYSkZtaHlObWZzMlprMXFEU1pvUUdm?= =?utf-8?B?UnlUMEh4TFluNlNkUlM1bDRKcmh1elROOEhpWUZWUjRnZnpGcVMwdWVkYzZo?= =?utf-8?B?MjBLZmE2YVZQTVRpS3RJdEhQdE8rVFRRYjNtenhqOEQ1enArcXU5RUV4SHJ3?= =?utf-8?B?UThnQ29lbDBHR3gyaXlSU0FaUEZPcjM3NnRmUWNTNkRxZmk5Z1pybWFaMERO?= =?utf-8?B?amNDaW4vcFdwYXVJMW9QUWxVL09lZTF5bFhEZ0hiTjZKZStsU0hHaHVJNDg1?= =?utf-8?Q?JylgeygNzHI8zXi34kAZNFhtJAMnH6j4EzRVkryEqr7B?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: accesssoftek.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR20MB6156.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60b8b9a3-3a77-4069-31e3-08de2e2cf23d X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2025 03:19:31.0194 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5c0629ff-77ca-4be4-816c-d880f9e12cba X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: IbHKjG2b/GruW/lWTkqEvpRprRo9Ko3hAe79qOucIH5wuhUB8VlHrRRWioSV1bbfc9eAoEiosNS4WPW9ZuU2Gw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR20MB4545 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=2a01:111:f403:c10d::1; envelope-from=hdijk@accesssoftek.com; helo=SN4PR2101CU001.outbound.protection.outlook.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 27 Nov 2025 22:48:10 -0500 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-ZohoMail-DKIM: pass (identity @accesssoftek.com) X-ZM-MESSAGEID: 1764301746466019200 trans_BRA does gen_a64_set_pc(s, dst); set_btype_for_br(s, a->rn); gen_a64_set_pc does s->pc_save =3D -1; set_btype_for_br (if aa64_bti is enabled and the register is not x16 or x17) does gen_pc_plus_diff(s, pc, 0); gen_pc_plus_diff does assert(s->pc_save !=3D -1); Hence, this assert is getting hit. We need to call set_btype_for_br before gen_a64_set_pc, and there is nothing in set_btype_for_br that depends on gen_a64_set_pc having already been called, so this commit simply swaps the calls. --- target/arm/tcg/translate-a64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/tcg/translate-a64.c b/target/arm/tcg/translate-a64.c index 08b21d7dbf..cde22a5cca 100644 --- a/target/arm/tcg/translate-a64.c +++ b/target/arm/tcg/translate-a64.c @@ -1916,8 +1916,8 @@ static bool trans_BRA(DisasContext *s, arg_bra *a) return false; } dst =3D auth_branch_target(s, cpu_reg(s,a->rn), cpu_reg_sp(s, a->rm), = !a->m); - gen_a64_set_pc(s, dst); set_btype_for_br(s, a->rn); + gen_a64_set_pc(s, dst); s->base.is_jmp =3D DISAS_JUMP; return true; } --=20 2.47.3