From nobody Sat Nov 29 10:17:00 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=1764304717; cv=pass; d=zohomail.com; s=zohoarc; b=JMUFYkZ3EUZbM3n/dltOB4dH/UoTIxx1PZlTWisb84GUTs9artC0hhmslp1PQNE+5tE1+cp30/SBSv3OpDiuQ2MH9seJi7tWz0dE0QI3J61eJGWaen99b1McrSpr16VCKyXgCAyTiCwOdASh8BmKPbGMHGmB3qMhBHzEp06VIuk= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764304717; 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=DgsigMoVxhv1xDr1KbXx7c7olwdjZa5snvXV2ipFI6I=; b=jemYX5YJDREJ7os3DNaMhr6FEDnSfYnU2qIRhOIA1VYa5POee588YRS831vlM9SqCRdrr1ka1nRAx85tdw6myYwXl8qRH952yDYeEpZuJUT+dMTsodXiR1dnAi0uXzPpRUJn9duOxKRgfuOVkquUPcsUkcKTpBRCUUhwNl+pK1A= 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 1764304717983245.1646400618614; Thu, 27 Nov 2025 20:38:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vOqFQ-0001Ie-CF; Thu, 27 Nov 2025 23:38:20 -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 1vOqFN-0001FO-J1; Thu, 27 Nov 2025 23:38:18 -0500 Received: from mail-southcentralusazlp170130001.outbound.protection.outlook.com ([2a01:111:f403:c10c::1] helo=SA9PR02CU001.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 1vOqFM-0002r3-2I; Thu, 27 Nov 2025 23:38:17 -0500 Received: from PH0PR20MB6156.namprd20.prod.outlook.com (2603:10b6:510:2a1::7) by IA0PR20MB5730.namprd20.prod.outlook.com (2603:10b6:208:436::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9366.14; Fri, 28 Nov 2025 04:38:11 +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 04:38:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WnYfTAPxCzRZrcU69AEYxA1xWFG/r2XnnlnkkqL45vWggV3QhV368C8k7LCCCimJ2m82LT5bujvXGglaLqpJAZFOE/vdOwyi2s1tcbPZmDDwVcgjOyDOf/EIKJQ27aUlDKc/1e/SRGCWoaxwr6onzpQLW2ujaGh158R6JVzcE4Z0ow+PoYOKX+gfpJPLzPBScwAEEJMbl/izktJDdjZy5gRpiOgh4IIPtuLjW4w+/jrFvxmRxVtkkghhbL5VCVvg4F4xzS0R/d6j7HxtWrRixk4/3VsCqSLXd/ydAVDdzzgUV5KB8RZenqXVsDRBd3eVrjFlR6FCH/rCtTF/yaw6Sw== 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=DgsigMoVxhv1xDr1KbXx7c7olwdjZa5snvXV2ipFI6I=; b=Tnn+133lTrG7XNEV2eobxSJRcTyA1th7Xl6L6lPvpmMW/zuLkyCJX77ee6yRtZCEMqmUVJHqFANzHWuXyIFUBKJMLKNmZ2EG0bgLhx21khS7I8o9kI2MfK8qFfFdXZdRWi/as/P8ZgbXYYZu/ViQj6YQ7W189EWvZtsD2h0CL717MIHjhn6uulM1ga0oKb2d8dMQCTMgLYEUGscUnbuhn2HkR21tvu8RkbRZw6qCEWjheTxbfEsIepogTBOdkNyJFXMRbB8Fk/jlblM6q0uVHOqY+O6PyWGwl4Npttj4ndITwBmMvlOuFDdktQOsEGSiDHH51V7IdLeoZn7UhZZjKw== 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=DgsigMoVxhv1xDr1KbXx7c7olwdjZa5snvXV2ipFI6I=; b=MndrJZd0YNKBq9OSHgobcrPAVAUVBJYqQSP4HJ+JAsW7PYif3d9G8R7T8V4HAZY6+0LXpdtK4gb5JrXvi54vMxnz4jEMJJh8MaT6Y304yN4yMxUG7+kos7GxFIq4IQosdqOD/r3l4eM4Jap2Fk1KkF6uro3/ckiAMIuVI9heuaS1fDkMt2+poiH6ECsI7RoNJg349cYqC4yrCAH2woTvEmhVzr2Dk/P+k6A3In1p5A2dkcJZf+fSCFaKsslabmsu5UBYSq5m7bf6urrh/qa12XcZF6u6Xq3PYLDxArWGueDO/xdC4zwA4yxCG6hrlb3XyuvpK37sexKXejGgjdhDug== From: Harald van Dijk To: "qemu-arm@nongnu.org" CC: "qemu-devel@nongnu.org" Subject: [PATCH v2] target/arm: Fix assert on BRA. Thread-Topic: [PATCH v2] target/arm: Fix assert on BRA. Thread-Index: AQHcYCDN0HBeSm74ZEOZ2QuHsADr1Q== Date: Fri, 28 Nov 2025 04:38:11 +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_|IA0PR20MB5730:EE_ x-ms-office365-filtering-correlation-id: 9d076cff-b1b5-4b1b-8d12-08de2e37efe4 x-ms-exchange-atpmessageproperties: SA x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|10070799003|366016|1800799024|38070700021; x-microsoft-antispam-message-info: =?utf-8?B?T01tdjZob0JyMDMxNUxlWWVlZ2hDTGtLazFIV0V2dGpYczQwb0w4anNBeUdO?= =?utf-8?B?cDRZWVVQN256YnR0L3FrNjVsVHdBbndUR2dwckl6T1dxcTVVSGV0M1Vnbk8z?= =?utf-8?B?ckY2RlJ4aHBsOVNSbkVUTi9uTjVwUmRhMVVJd3ZJQXJxMWxab3d3USsyVFlj?= =?utf-8?B?SGM0V1hSRlZKTTVhMXRRRDZXQkU2U1Q1d3l4a0FzWXdIVmhsa1VOejFPY2tX?= =?utf-8?B?OWowb0pGMWhEdHBCNG1ER0s4Zm9oN0Jybm1oaXRLQjJRa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= 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)(376014)(10070799003)(366016)(1800799024)(38070700021); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?OTRZYkY5aSt1ZVNja25QODRrQS9VaHQ4RFk5bkhOd25QY0NTbmkzNm83N3N4?= =?utf-8?B?aTVYTTh4N0haemF1ay9BRHZlK3VjdktvVkdINjZTRnRTY29JbVU2QlYvWk01?= =?utf-8?B?eGpNQ0sxaFJmOENBbEo2b0Vvaks0bVV4WDlsRTNXdDVSa0tZK0JGeTVhenR4?= =?utf-8?B?WkxiS21HQWhtK01PVjgvWGU1dEhCMkJ5eTVWSGgvU1VidXRmaWtGVXdaRlRO?= =?utf-8?B?dTlQeC9oalNYNTZFcVc1WE9TQzZTZFQrSm5kUk1sa2dGOUFONU5PdFZ1SVV5?= =?utf-8?B?Mnh5dW5zbCtnN21WZk5kL1VDS2ZDZEVoR3lJQ0xYclpwbFNaeWluUG5oWmhV?= =?utf-8?B?Y1diR1NmVklVbWcvQkpIWXk0TFBMVU1UcmJNdkUrcTZBVlZaU1ZITlVHRE8r?= =?utf-8?B?YVFHcEppT3pjT2o3cWFtZkJqdk1mWjkrM3VSZTBFWjlzcldLR09qT3lnMW5L?= =?utf-8?B?Q0V1cEpnTzd2cWhYZjdwUmdkQVpiQml0K1BpRXo4QkY0bjRibTVYSDkvMHUz?= =?utf-8?B?S0FxMDUrM0dKc0tzRUpndWdDVGJ4RlYxZ2tNNzJVYTFLdzRsejRQRVdRNEhk?= =?utf-8?B?Z00xZlNLK1dySUpiaDREODZ4Rk44UkNyWXVwaFdVYTZkSlFmNVQ1ZTNqcTF3?= =?utf-8?B?cnRVUWFFWW4wdkFnM0lDeVhQS3J1ZEFCNkpWMkt0N282ZkhRNj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cVhlQVpHZEJFNXNHL3VPMXZ2?= =?utf-8?B?NTlqRThpUlZ5djBUWWFPMURzdFJ3SEFGbGk2RXZnMmU0aVdNZ08xQjY5L0th?= =?utf-8?B?dHNEUWxDZFc1K1FLcitRbi8vUGRXWlhScDJRUm1LSkMzcGovNTEwK1poNjds?= =?utf-8?B?YTdOR2VQUUZYVlczU2RRV0NFcHBkdUdkdEF4ZER3eWtGd2VYYU1SYlhsVkZ4?= =?utf-8?B?WWowRXRSY3p4dVE2dGNDZXhrbEU3bEduUkRoN3pTMmE2Zzh3SG10RGxDOGNl?= =?utf-8?B?ZHVtK3VVVjJwOEdmeG1uVnpBdDhCMi9lWDgwaUJabDJ4R3lrZSt3b2l4c1Er?= =?utf-8?B?RWQ3RG0rYXRWVlRQNjJMMVkvakFvSkg2Ymh1MklrQUlUU1Jsd2FiQnBlaTQv?= =?utf-8?B?R21NcW0yZUN2WFZicjZiREZVazVZaGNjUVJGVllvUG5heGVmUUVManRSalpG?= =?utf-8?B?c1FjOW9GZHkwN1E2TkdDZnFGTXgzUVN3a2VMN2R1bmFIeE0zenJ2czVWQ0pj?= =?utf-8?B?OCtudDdGVVZpcndKUkhXbGdJY3hxSGxoMXJyV2lRNE85MHNRdnZPdDArRE8x?= =?utf-8?Q?7qpe+t6jpT9MyXb7OWAS3Rq9aWhlxcfWYdIgq+DEVLyn?= Content-Type: text/plain; charset="utf-8" Content-ID: <1F49BF0BFFE27D43A21413888152A8D6@namprd20.prod.outlook.com> 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: 9d076cff-b1b5-4b1b-8d12-08de2e37efe4 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2025 04:38:11.5406 (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: WlW7o4bpVN674skQOMAjRFFWvdoldrvCZrKdT5bn5wJdFTMy3y6wdzWeXQEEsAapSM+FbfAsa4XZiQNclv2ZMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR20MB5730 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:c10c::1; envelope-from=hdijk@accesssoftek.com; helo=SA9PR02CU001.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-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: 1764304719436019200 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. Signed-off-by: Harald van Dijk Reviewed-by: Peter Maydell --- 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