mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-19 08:02:15 -06:00
accel/tcg: Move user definition of cpu_interrupt() to user-exec.c
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240428221450.26460-4-philmd@linaro.org>
This commit is contained in:
parent
b254c342cf
commit
40ab89f374
2 changed files with 8 additions and 9 deletions
|
@ -644,15 +644,6 @@ void cpu_io_recompile(CPUState *cpu, uintptr_t retaddr)
|
||||||
cpu_loop_exit_noexc(cpu);
|
cpu_loop_exit_noexc(cpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* CONFIG_USER_ONLY */
|
|
||||||
|
|
||||||
void cpu_interrupt(CPUState *cpu, int mask)
|
|
||||||
{
|
|
||||||
g_assert(bql_locked());
|
|
||||||
cpu->interrupt_request |= mask;
|
|
||||||
qatomic_set(&cpu->neg.icount_decr.u16.high, -1);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* CONFIG_USER_ONLY */
|
#endif /* CONFIG_USER_ONLY */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include "qemu/bitops.h"
|
#include "qemu/bitops.h"
|
||||||
#include "qemu/rcu.h"
|
#include "qemu/rcu.h"
|
||||||
#include "exec/cpu_ldst.h"
|
#include "exec/cpu_ldst.h"
|
||||||
|
#include "qemu/main-loop.h"
|
||||||
#include "exec/translate-all.h"
|
#include "exec/translate-all.h"
|
||||||
#include "exec/page-protection.h"
|
#include "exec/page-protection.h"
|
||||||
#include "exec/helper-proto.h"
|
#include "exec/helper-proto.h"
|
||||||
|
@ -38,6 +39,13 @@ __thread uintptr_t helper_retaddr;
|
||||||
|
|
||||||
//#define DEBUG_SIGNAL
|
//#define DEBUG_SIGNAL
|
||||||
|
|
||||||
|
void cpu_interrupt(CPUState *cpu, int mask)
|
||||||
|
{
|
||||||
|
g_assert(bql_locked());
|
||||||
|
cpu->interrupt_request |= mask;
|
||||||
|
qatomic_set(&cpu->neg.icount_decr.u16.high, -1);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Adjust the pc to pass to cpu_restore_state; return the memop type.
|
* Adjust the pc to pass to cpu_restore_state; return the memop type.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue