mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/openrisc: 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-17-f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
dabfe1332e
commit
250ae6dfc7
4 changed files with 8 additions and 7 deletions
|
@ -28,7 +28,6 @@
|
|||
|
||||
void openrisc_cpu_do_interrupt(CPUState *cs)
|
||||
{
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
OpenRISCCPU *cpu = OPENRISC_CPU(cs);
|
||||
CPUOpenRISCState *env = &cpu->env;
|
||||
int exception = cs->exception_index;
|
||||
|
@ -96,7 +95,6 @@ void openrisc_cpu_do_interrupt(CPUState *cs)
|
|||
} else {
|
||||
cpu_abort(cs, "Unhandled exception 0x%x\n", exception);
|
||||
}
|
||||
#endif
|
||||
|
||||
cs->exception_index = -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue