qemu-sparc update

-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (GNU/Linux)
 
 iQEcBAABAgAGBQJXbWuoAAoJEFvCxW+uDzIf2WUH+QFI7vvsLEvrmOLxJf78OuPW
 udj4/wZELcPAo+UHyW9rLOO02fbAq4r1FJ0MjIQWs3amC9lTYZfIuk/zSjnKcC9y
 AGUmfCapdLJOdRdI0y5kmowtqtD/eCvXMHyqbqRQQesauC9O3xt2/kF0LKrcEVaj
 eS209FEEocVnpipdH3zathomUwaZdXBMpKCuvWPusQqg0TkIhbV60Ct8EUrL8UgU
 ndPsuepRj52KNtqDhLgNLSHM4C3kL5ALVyM2pgCoEjiH9Mh0v85esibrWPj4ASpp
 vpLmuGC1ZUIY8EZCN6kjp8GW90TQvu6dqc5ayr8KYGh6muhQ6OB6BDjLOVuMUd0=
 =dnfK
 -----END PGP SIGNATURE-----

Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-signed' into staging

qemu-sparc update

# gpg: Signature made Fri 24 Jun 2016 18:19:36 BST
# gpg:                using RSA key 0x5BC2C56FAE0F321F
# gpg: Good signature from "Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>"
# Primary key fingerprint: CC62 1AB9 8E82 200D 915C  C9C4 5BC2 C56F AE0F 321F

* remotes/mcayland/tags/qemu-sparc-signed:
  target-sparc: fix register corruption in ldstub if there is no write permission

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Peter Maydell 2016-06-27 10:56:11 +01:00
commit 929bf947f7

View File

@ -4679,12 +4679,15 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn)
case 0xd: /* ldstub -- XXX: should be atomically */
{
TCGv r_const;
TCGv tmp = tcg_temp_new();
gen_address_mask(dc, cpu_addr);
tcg_gen_qemu_ld8u(cpu_val, cpu_addr, dc->mem_idx);
tcg_gen_qemu_ld8u(tmp, cpu_addr, dc->mem_idx);
r_const = tcg_const_tl(0xff);
tcg_gen_qemu_st8(r_const, cpu_addr, dc->mem_idx);
tcg_gen_mov_tl(cpu_val, tmp);
tcg_temp_free(r_const);
tcg_temp_free(tmp);
}
break;
case 0x0f: