mirror of https://github.com/xemu-project/xemu.git
target/nios2: take BQL around interrupt check
The interrupt controller does not have its own locking. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b01a2d07c9
commit
c0d24e7f70
|
@ -21,6 +21,7 @@
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "exec/helper-proto.h"
|
#include "exec/helper-proto.h"
|
||||||
#include "exec/cpu_ldst.h"
|
#include "exec/cpu_ldst.h"
|
||||||
|
#include "qemu/main-loop.h"
|
||||||
|
|
||||||
#if !defined(CONFIG_USER_ONLY)
|
#if !defined(CONFIG_USER_ONLY)
|
||||||
void helper_mmu_read_debug(CPUNios2State *env, uint32_t rn)
|
void helper_mmu_read_debug(CPUNios2State *env, uint32_t rn)
|
||||||
|
@ -35,7 +36,9 @@ void helper_mmu_write(CPUNios2State *env, uint32_t rn, uint32_t v)
|
||||||
|
|
||||||
void helper_check_interrupts(CPUNios2State *env)
|
void helper_check_interrupts(CPUNios2State *env)
|
||||||
{
|
{
|
||||||
|
qemu_mutex_lock_iothread();
|
||||||
nios2_check_interrupts(env);
|
nios2_check_interrupts(env);
|
||||||
|
qemu_mutex_unlock_iothread();
|
||||||
}
|
}
|
||||||
#endif /* !CONFIG_USER_ONLY */
|
#endif /* !CONFIG_USER_ONLY */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue