[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [Qemu-devel] [PATCH] lm32: take BQL before writing IP/
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-stable] [Qemu-devel] [PATCH] lm32: take BQL before writing IP/IM register |
Date: |
Wed, 9 May 2018 16:45:33 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
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: address@hidden
>> Signed-off-by: Michael Walle <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
>> ---
>> 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)
>
- Re: [Qemu-stable] [Qemu-devel] [PATCH] lm32: take BQL before writing IP/IM register,
Philippe Mathieu-Daudé <=