BQL bug fix

-----BEGIN PGP SIGNATURE-----
 
 iQEcBAABAgAGBQJZyX/YAAoJEGTfOOivfiFfDpIIAKUEvDtqewDFbhCmdg6HvIIi
 wfT57Np8+7hvbGh63N6r1x3ewzbEtjFnqH6KxUTDqEhVO3koMOlPn7nj25BZmdU8
 OnXrTmmOnTCH43LINzOLvpeZss2FNuAYagj30TJTzl7HApeJBaWHrNwZ7VffZJfr
 WWP8MX5qkjLMyb9GIwLCDtnkkNGv/6hKjwqXsXZrxb9jyopM/ZyYCI60jW9j3nfL
 8kh0u9I/Yr+TQgyPsXcaNVYFKydUdKDxMH6fzc8qKXtGHDYUBQB18gYH2AFLfC7E
 gsfK0oj0G2YmoAx0W9oq7ccr08SoGavSFM2unU3rRvmyyTgmGtIu0qoSPu1wqho=
 =1F7E
 -----END PGP SIGNATURE-----

Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20170925' into staging

BQL bug fix

# gpg: Signature made Mon 25 Sep 2017 23:14:48 BST
# gpg:                using RSA key 0x64DF38E8AF7E215F
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>"
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F

* remotes/rth/tags/pull-tcg-20170925:
  accel/tcg/cputlb: avoid recursive BQL (fixes #1706296)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Peter Maydell 2017-09-26 19:08:49 +01:00
commit 2509dda283
1 changed files with 2 additions and 2 deletions

View File

@ -765,7 +765,7 @@ static uint64_t io_readx(CPUArchState *env, CPUIOTLBEntry *iotlbentry,
cpu->mem_io_vaddr = addr;
if (mr->global_locking) {
if (mr->global_locking && !qemu_mutex_iothread_locked()) {
qemu_mutex_lock_iothread();
locked = true;
}
@ -800,7 +800,7 @@ static void io_writex(CPUArchState *env, CPUIOTLBEntry *iotlbentry,
cpu->mem_io_vaddr = addr;
cpu->mem_io_pc = retaddr;
if (mr->global_locking) {
if (mr->global_locking && !qemu_mutex_iothread_locked()) {
qemu_mutex_lock_iothread();
locked = true;
}