On 29/8/25 17:28, Paolo Bonzini wrote:
It is not used by user-mode emulation and is the only caller of
cpu_interrupt() in qemu-sparc* binaries.

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
---
  target/sparc/int32_helper.c | 2 ++
  target/sparc/int64_helper.c | 2 ++
  2 files changed, 4 insertions(+)

diff --git a/target/sparc/int32_helper.c b/target/sparc/int32_helper.c
index 39db4ffa70a..fdcaa0a578b 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

I'd rather see these moved in system-specific files.

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to