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>
This commit is contained in:
parent
588ffa75eb
commit
a445d3b85c
2 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue