From: Paolo Bonzini <pbonz...@redhat.com>

Cc: Richard Henderson <r...@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Emilio G. Cota <c...@braap.org>
---
 target/alpha/cpu.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/target/alpha/cpu.c b/target/alpha/cpu.c
index b08078e7fc..76001e66f1 100644
--- a/target/alpha/cpu.c
+++ b/target/alpha/cpu.c
@@ -42,10 +42,10 @@ static bool alpha_cpu_has_work(CPUState *cs)
        assume that if a CPU really wants to stay asleep, it will mask
        interrupts at the chipset level, which will prevent these bits
        from being set in the first place.  */
-    return cs->interrupt_request & (CPU_INTERRUPT_HARD
-                                    | CPU_INTERRUPT_TIMER
-                                    | CPU_INTERRUPT_SMP
-                                    | CPU_INTERRUPT_MCHK);
+    return atomic_read(&cs->interrupt_request) & (CPU_INTERRUPT_HARD
+                                                  | CPU_INTERRUPT_TIMER
+                                                  | CPU_INTERRUPT_SMP
+                                                  | CPU_INTERRUPT_MCHK);
 }
 
 static void alpha_cpu_disas_set_info(CPUState *cpu, disassemble_info *info)
-- 
2.17.1


Reply via email to