On 9/17/18 6:30 PM, Emilio G. Cota wrote: > From: Paolo Bonzini <[email protected]> > > Cc: "Edgar E. Iglesias" <[email protected]> > Signed-off-by: Paolo Bonzini <[email protected]> > Signed-off-by: Emilio G. Cota <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]> > --- > target/microblaze/cpu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c > index 9b546a2c18..c9cff79e38 100644 > --- a/target/microblaze/cpu.c > +++ b/target/microblaze/cpu.c > @@ -84,7 +84,8 @@ static void mb_cpu_set_pc(CPUState *cs, vaddr value) > > static bool mb_cpu_has_work(CPUState *cs) > { > - return cs->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI); > + return atomic_read(&cs->interrupt_request) & (CPU_INTERRUPT_HARD | > + CPU_INTERRUPT_NMI); > } > > #ifndef CONFIG_USER_ONLY >
