Message ID | 20170716215525.e57rklv3d5357mkj@aurel32.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/target/sh4/helper.c +++ b/target/sh4/helper.c @@ -86,6 +86,9 @@ void superh_cpu_do_interrupt(CPUState *cs) int do_irq = cs->interrupt_request & CPU_INTERRUPT_HARD; int do_exp, irq_vector = cs->exception_index; + /* LDST flag is cleared by an exception or an interrupt. */ + env->ldst = 0; + /* prioritize exceptions over interrupts */ do_exp = cs->exception_index != -1;