Am 2018-09-17 18:30, schrieb Emilio G. Cota:
From: Paolo Bonzini <pbonz...@redhat.com>
Cc: Michael Walle <mich...@walle.cc>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Emilio G. Cota <c...@braap.org>
---
target/lm32/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/lm32/cpu.c b/target/lm32/cpu.c
index b7499cb627..6c0178e1ea 100644
--- a/target/lm32/cpu.c
+++ b/target/lm32/cpu.c
@@ -101,7 +101,7 @@ static void lm32_cpu_init_cfg_reg(LM32CPU *cpu)
static bool lm32_cpu_has_work(CPUState *cs)
{
- return cs->interrupt_request & CPU_INTERRUPT_HARD;
+ return atomic_read(&cs->interrupt_request) & CPU_INTERRUPT_HARD;
}
/* CPUClass::reset() */
Acked-by: Michael Walle <mich...@walle.cc>