diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-29 10:53:55 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-17 19:00:55 +0200 |
| commit | a445d3b85c4119aac7ecb7771b5da0709ee1f1a4 (patch) | |
| tree | 045ef7d1a38045ed54d7127c3943920b7bc78328 | |
| parent | 588ffa75eba30baf75d1ba246c5f917e8716fcaa (diff) | |
| download | focaccia-qemu-a445d3b85c4119aac7ecb7771b5da0709ee1f1a4.tar.gz focaccia-qemu-a445d3b85c4119aac7ecb7771b5da0709ee1f1a4.zip | |
target/sparc: limit cpu_check_irqs to system emulation
It is not used by user-mode emulation and is the only caller of cpu_interrupt() in qemu-sparc* binaries. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | target/sparc/int32_helper.c | 2 | ||||
| -rw-r--r-- | target/sparc/int64_helper.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/target/sparc/int32_helper.c b/target/sparc/int32_helper.c index 39db4ffa70..fdcaa0a578 100644 --- a/target/sparc/int32_helper.c +++ b/target/sparc/int32_helper.c @@ -65,6 +65,7 @@ static const char *excp_name_str(int32_t exception_index) return excp_names[exception_index]; } +#if !defined(CONFIG_USER_ONLY) void cpu_check_irqs(CPUSPARCState *env) { CPUState *cs; @@ -96,6 +97,7 @@ void cpu_check_irqs(CPUSPARCState *env) cpu_reset_interrupt(cs, CPU_INTERRUPT_HARD); } } +#endif void sparc_cpu_do_interrupt(CPUState *cs) { diff --git a/target/sparc/int64_helper.c b/target/sparc/int64_helper.c index 49e4e51c6d..23adda4cad 100644 --- a/target/sparc/int64_helper.c +++ b/target/sparc/int64_helper.c @@ -62,6 +62,7 @@ static const char * const excp_names[0x80] = { }; #endif +#if !defined(CONFIG_USER_ONLY) void cpu_check_irqs(CPUSPARCState *env) { CPUState *cs; @@ -127,6 +128,7 @@ void cpu_check_irqs(CPUSPARCState *env) cpu_reset_interrupt(cs, CPU_INTERRUPT_HARD); } } +#endif void sparc_cpu_do_interrupt(CPUState *cs) { |