mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-29 04:52:22 -06:00
target/sparc: Restrict cpu_exec_interrupt() handler to sysemu
Restrict cpu_exec_interrupt() and its callees to sysemu. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210911165434.531552-21-f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
73166ca348
commit
798ac8b5e9
1 changed files with 3 additions and 1 deletions
|
@ -77,6 +77,7 @@ static void sparc_cpu_reset(DeviceState *dev)
|
||||||
env->cache_control = 0;
|
env->cache_control = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef CONFIG_USER_ONLY
|
||||||
static bool sparc_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
static bool sparc_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
||||||
{
|
{
|
||||||
if (interrupt_request & CPU_INTERRUPT_HARD) {
|
if (interrupt_request & CPU_INTERRUPT_HARD) {
|
||||||
|
@ -96,6 +97,7 @@ static bool sparc_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif /* !CONFIG_USER_ONLY */
|
||||||
|
|
||||||
static void cpu_sparc_disas_set_info(CPUState *cpu, disassemble_info *info)
|
static void cpu_sparc_disas_set_info(CPUState *cpu, disassemble_info *info)
|
||||||
{
|
{
|
||||||
|
@ -863,10 +865,10 @@ static const struct SysemuCPUOps sparc_sysemu_ops = {
|
||||||
static const struct TCGCPUOps sparc_tcg_ops = {
|
static const struct TCGCPUOps sparc_tcg_ops = {
|
||||||
.initialize = sparc_tcg_init,
|
.initialize = sparc_tcg_init,
|
||||||
.synchronize_from_tb = sparc_cpu_synchronize_from_tb,
|
.synchronize_from_tb = sparc_cpu_synchronize_from_tb,
|
||||||
.cpu_exec_interrupt = sparc_cpu_exec_interrupt,
|
|
||||||
.tlb_fill = sparc_cpu_tlb_fill,
|
.tlb_fill = sparc_cpu_tlb_fill,
|
||||||
|
|
||||||
#ifndef CONFIG_USER_ONLY
|
#ifndef CONFIG_USER_ONLY
|
||||||
|
.cpu_exec_interrupt = sparc_cpu_exec_interrupt,
|
||||||
.do_interrupt = sparc_cpu_do_interrupt,
|
.do_interrupt = sparc_cpu_do_interrupt,
|
||||||
.do_transaction_failed = sparc_cpu_do_transaction_failed,
|
.do_transaction_failed = sparc_cpu_do_transaction_failed,
|
||||||
.do_unaligned_access = sparc_cpu_do_unaligned_access,
|
.do_unaligned_access = sparc_cpu_do_unaligned_access,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue