Skip to contentSkip to conversation

target/lm32 BQL patch

GIT PULL Michael Walle 2 participants 5 messages May 21, 2018 – May 24, 2018

lore
Share & tools
lore
#0 lore raw

The following changes since commit 81e9cbd0ca1131012b058df6804b1f626a6b730c:

lm32: take BQL before writing IP/IM register (2018-05-21 13:37:12 +0200)

are available in the git repository at:

git://github.com/mwalle/qemu.git tags/lm32-queue/20180521

for you to fetch changes up to 81e9cbd0ca1131012b058df6804b1f626a6b730c:

lm32: take BQL before writing IP/IM register (2018-05-21 13:37:12 +0200)

----------------------------------------------------------------

Michael Walle (1):
lm32: take BQL before writing IP/IM register

 target/lm32/op_helper.c | 4 ++++
 1 file changed, 4 insertions(+)
Signature · 1 line
2.11.0
#1 lore raw

[Qemu-devel] [PULL 1/1] lm32: take BQL before writing IP/IM register

Writing to these registers may raise an interrupt request. Actually, this prevents the milkymist board from starting.

---
 target/lm32/op_helper.c | 4 ++++
 1 file changed, 4 insertions(+)
target/lm32/op_helper.c +4 -0
index 577f8306e3..234d55e056 100644
@@ -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)
Signature · 1 line
2.11.0
#2 lore raw
In reply to Michael Walle
Quoted 7 lines · Michael Walle

The following changes since commit 81e9cbd0ca1131012b058df6804b1f626a6b730c:

lm32: take BQL before writing IP/IM register (2018-05-21 13:37:12 +0200)

are available in the git repository at:

git://github.com/mwalle/qemu.git tags/lm32-queue/20180521

Hi -- this doesn't appear to be a GPG signed tag?

thanks
-- PMM

#3 lore raw

Am 2018-05-22 12:01, schrieb Peter Maydell:

Quoted 12 lines · Michael Walle
Quoted 8 lines

The following changes since commit 81e9cbd0ca1131012b058df6804b1f626a6b730c:

lm32: take BQL before writing IP/IM register (2018-05-21 13:37:12
+0200)

are available in the git repository at:

git://github.com/mwalle/qemu.git tags/lm32-queue/20180521

Hi -- this doesn't appear to be a GPG signed tag?

whoops, fixed. I guess I get everything wrong with this patch/pullrequest..

-michael

#4 lore raw
Quoted 12 lines · Michael Walle

Am 2018-05-22 12:01, schrieb Peter Maydell:

Quoted 11 lines · Michael Walle
Quoted 9 lines

The following changes since commit
81e9cbd0ca1131012b058df6804b1f626a6b730c:

lm32: take BQL before writing IP/IM register (2018-05-21 13:37:12
+0200)

are available in the git repository at:

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

git://github.com/mwalle/qemu.git tags/lm32-queue/20180521

Hi -- this doesn't appear to be a GPG signed tag?

whoops, fixed. I guess I get everything wrong with this patch/pullrequest..

Applied the now-signed version.

thanks
-- PMM