diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-29 12:43:55 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-17 19:00:55 +0200 |
| commit | bd1cefdd9f18bfbdcb597d7d552fbf31dee47a28 (patch) | |
| tree | 94c6f172d4a72af4f3b3accc2c4d09d45d768185 /target/arm/internals.h | |
| parent | 3efe1a0f604cb7c4afd0381294acbdec75c65325 (diff) | |
| download | focaccia-qemu-bd1cefdd9f18bfbdcb597d7d552fbf31dee47a28.tar.gz focaccia-qemu-bd1cefdd9f18bfbdcb597d7d552fbf31dee47a28.zip | |
target-arm: remove uses of cpu_interrupt() for user-mode emulation
Arm leaves around some functions that use cpu_interrupt(), even for user-mode emulation when the code is unreachable. Pull out the system-mode implementation to a separate file, and add stubs for CONFIG_USER_ONLY. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/arm/internals.h')
| -rw-r--r-- | target/arm/internals.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/arm/internals.h b/target/arm/internals.h index f5a1e75db3..f0aa26c511 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -1293,6 +1293,11 @@ static inline const char *aarch32_mode_name(uint32_t psr) } /** + * arm_cpu_exec_interrupt(): Implementation of the cpu_exec_inrerrupt hook. + */ +bool arm_cpu_exec_interrupt(CPUState *cs, int interrupt_request); + +/** * arm_cpu_update_virq: Update CPU_INTERRUPT_VIRQ bit in cs->interrupt_request * * Update the CPU_INTERRUPT_VIRQ bit in cs->interrupt_request, following |