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 lists1p.gnu.org (lists1p.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 16210CD3427 for ; Tue, 5 May 2026 13:12:56 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wKFZw-00057U-ML; Tue, 05 May 2026 09:12:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wKFZv-00056x-UI for qemu-arm@nongnu.org; Tue, 05 May 2026 09:12:47 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wKFZp-0002Q9-MG for qemu-arm@nongnu.org; Tue, 05 May 2026 09:12:44 -0400 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5a62f43b76aso4765208e87.3 for ; Tue, 05 May 2026 06:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777986759; x=1778591559; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NCyPu/+8kpyqyuj5Mo1NFau7dJXf0qONfqi2NDsUJ78=; b=gZx7XwgeeBddWd2jci9xPPAdknhErQ/iK6exC5TVS7nsIflox06/uFxB5F6CQBXkZH 9FGYVKeZ9JSqwDvBaqAetTi4YNK4t9IHmLQeKxdINqcQ6ggkc72b0FU5SbU5XZ7OqEdq RWUzFUPOjKbE6pKpIB+L4iSsNlKcIPp41/fdTJoZ2xvQo4FVLXzZxnJBadIEjZr45eMF TyxYSjqxGvh5W35XFexKFqwiugWZsEFRmxxPdo19k0bi7wlvyZodfekFwiGgF8czHTFm RXOw/nlfMI9z+ZlIRz2scASEjwByMBVb+Py+FELKt+ZN1ui/hv8Jz3XD/LFBwAxXQjFv /7xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777986759; x=1778591559; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NCyPu/+8kpyqyuj5Mo1NFau7dJXf0qONfqi2NDsUJ78=; b=nNUNhA8cNWCBod57T4tMoCum5fR63aYd8R4OlVqrzjK6twSCdb7kMUAUq3ogb/GhA9 CL/0UyJGfJ6Lp14Rgk74/liHILshgOXt/AdXGtUWREF+xekvlHHdoCw99CfMBYZOIeW1 koADu+PoVBEUNOz0Giv+XBW8F8JHnudKxGGJAMIMONPtmz4+Fft6f5B2QPhmrfFPWF6z CcXZu+eyS5IJCnZg/oH5g4e4AcUCt3nhuwO9IvUD+DOFuTh/wxBs8HzUe2moPpczcpVZ nMyehrhyeyYeLpAwzM8WrV7rguSO533ZDr8k2TGuGfZVBCyB/DbE3h4vj+NJE+8Vh2Xw N+7A== X-Gm-Message-State: AOJu0YyUt7lzRWFXxOCmm04Qw/9C5SDzl9Gn6Pz9XEWuDv5mNUwBBWP4 j/PdfeI5hUpXEWpSmccWe/0q9HYkFhLcOozs3KxwF4BxfEzTxel4wTQy/Ti2yQfWmCE= X-Gm-Gg: AeBDietAkSk/5d6MAtaVPLfrNG6lYgPWh2JUJBHC2nUt9hf9MSI4NX3LGd1w0WMxrp2 hqF3jIVH4f8cGzqX8FOF5v2hSrzhidskB3YuhKdmBIzM3GjLOGv1EVVvQjEvGZWyuw2/bTCB6u4 x74QeRQnTqWqr6hZODJ3MS7iXTjwjCED/FOi9z429NMx85mkH2r8hZZiBI0lXipEbuyI4C+Cz0U MiXZD3yV9ytuAAcpAahIcVqA8760ZsLXYK1Uc2CqTPpYuFXx/chtFznoAtx9qq/IO6pDFLwZ4lw BFlatQCLjPbsrhu0gMgdB8KJSN0e3gKaMOmrUB8bE0+cSYH3Jl5uouwJRisN4208Evt0dGIBJxz qLMewYVvWuFQGquMCX/xSroANlw0Q09h/zAX4NWoovMQcAYwlBl4s/fyhnjBKG8zYW6OLNIunlj 0OVveSEbCTlMbvwB//jBUztrfOX94u8r0ethZgNaeIlHgD X-Received: by 2002:a05:6512:4007:b0:5a4:74e:5f75 with SMTP id 2adb3069b0e04-5a862ec0f9emr4364681e87.1.1777986759409; Tue, 05 May 2026 06:12:39 -0700 (PDT) Received: from draig.lan ([185.124.0.195]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4504f4857ffsm4360390f8f.0.2026.05.05.06.12.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 06:12:38 -0700 (PDT) Received: from draig (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 5D30A5F8E7; Tue, 05 May 2026 14:12:37 +0100 (BST) From: =?utf-8?Q?Alex_Benn=C3=A9e?= To: Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, qemu-stable@nongnu.org Subject: Re: [PATCH] target/arm: Report IL=0 for Thumb 16-bit BKPT insn In-Reply-To: <20260505103726.419195-1-peter.maydell@linaro.org> (Peter Maydell's message of "Tue, 5 May 2026 11:37:26 +0100") References: <20260505103726.419195-1-peter.maydell@linaro.org> User-Agent: mu4e 1.14.1; emacs 30.1 Date: Tue, 05 May 2026 14:12:37 +0100 Message-ID: <874ikmngoq.fsf@draig.linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x134.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Peter Maydell writes: > The Thumb BKPT insn is 16-bit, and the ESR_ELx syndrome register > definition requires that we set the IL bit to 0 for this, and 1 for > the 32-bit A32 and A64 BKPT/BRK. > > We used to do this correctly, but accidentally lost it in the > conversion to decodetree, because we converted the A32 BKPT first, > and then when we converted the T16 BKPT we forgot that trans_BKPT() > was unconditionally setting IL=3D1. > > Pass the right value for syn_aa32_bkpt()'s is_16bit argument. > > Cc: qemu-stable@nongnu.org > Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/3474 > Fixes: 43f7e42c7d515f ("target/arm: Convert T16, Miscellaneous 16-bit ins= tructions") > Signed-off-by: Peter Maydell Reviewed-by: Alex Benn=C3=A9e --=20 Alex Benn=C3=A9e Virtualisation Tech Lead @ Linaro