Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/mwalle/tags/lm32-queue/20180521…
Browse files Browse the repository at this point in the history
…' into staging

target/lm32: BQL patch

# gpg: Signature made Tue 22 May 2018 19:25:30 BST
# gpg:                using RSA key B458ABB0D8D378E3
# gpg: Good signature from "Michael Walle <michael@walle.cc>"
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 2190 3E48 4537 A7C2 90CE  3EB2 B458 ABB0 D8D3 78E3

* remotes/mwalle/tags/lm32-queue/20180521:
  lm32: take BQL before writing IP/IM register

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
pm215 committed May 24, 2018
2 parents 4f50c16 + 81e9cbd commit 9cac60d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target/lm32/op_helper.c
Expand Up @@ -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)
Expand Down

0 comments on commit 9cac60d

Please sign in to comment.