On 2/16/26 8:03 AM, Peter Maydell wrote:
In arm_cpu_do_interrupt_aarch64() we call the TCG helper function
helper_rebuild_hflags_a64(), which requires helper.c to include the
TCG helper function prototypes even when this file is being compiled
with TCG disabled.

We don't actually need to do this -- because we have already written
the new EL into pstate and updated env->aarch64, we can call
aarch64_rebuild_hflags() to achieve the same effect. This is the
function we use everywhere else in this file to update hflags.

Switch to aarch64_rebuild_hflags() and drop the include of the
TCG helper headers.

Signed-off-by: Peter Maydell <[email protected]>
---
  target/arm/helper.c | 5 +----
  1 file changed, 1 insertion(+), 4 deletions(-)


Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to