On 02/01/2018 06:09 AM, Michael Walle wrote: > > Hi Peter, > > do you apply this patch? Or do I have to send a pull request?
Cc'ing Paolo. > > -michael > > Am 2018-01-09 18:01, schrieb Michael Walle: >> Writing to these registers may raise an interrupt request. Actually, >> this prevents the milkymist board from starting. >> >> Cc: [email protected] >> Signed-off-by: Michael Walle <[email protected]> Tested-by: Philippe Mathieu-Daudé <[email protected]> >> --- >> target/lm32/op_helper.c | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/target/lm32/op_helper.c b/target/lm32/op_helper.c >> index 30f670eee8..a766a1ece4 100644 >> --- a/target/lm32/op_helper.c >> +++ b/target/lm32/op_helper.c >> @@ -102,12 +102,16 @@ void HELPER(wcsr_dc)(CPULM32State *env, uint32_t >> dc) >> >> void HELPER(wcsr_im)(CPULM32State *env, uint32_t im) >> { >> + qemu_mutex_lock_iothread(); >> lm32_pic_set_im(env->pic_state, im); >> + qemu_mutex_unlock_iothread(); >> } >> >> void HELPER(wcsr_ip)(CPULM32State *env, uint32_t im) >> { >> + qemu_mutex_lock_iothread(); >> lm32_pic_set_ip(env->pic_state, im); >> + qemu_mutex_unlock_iothread(); >> } >> >> void HELPER(wcsr_jtx)(CPULM32State *env, uint32_t jtx) >
