diff options
author | James Hogan <james.hogan@imgtec.com> | 2017-07-18 12:55:46 +0100 |
---|---|---|
committer | Yongbok Kim <yongbok.kim@imgtec.com> | 2017-07-20 22:42:26 +0100 |
commit | e40df9a80bb7cdb0a4ca650985fa9fe572097fa7 (patch) | |
tree | d6c8a1780a03640ac73c668530012cca9db6a957 /qdict-test-data.txt | |
parent | 25d0233c1ac6cd14a15fcc834f1de3b179037b1d (diff) | |
download | qemu-e40df9a80bb7cdb0a4ca650985fa9fe572097fa7.zip qemu-e40df9a80bb7cdb0a4ca650985fa9fe572097fa7.tar.gz qemu-e40df9a80bb7cdb0a4ca650985fa9fe572097fa7.tar.bz2 |
target/mips: Fix MIPS64 MFC0 UserLocal on BE host
Using MFC0 to read CP0_UserLocal uses tcg_gen_ld32s_tl, however
CP0_UserLocal is a target_ulong. On a big endian host with a MIPS64
target this reads and sign extends the more significant half of the
64-bit register.
Fix this by using ld_tl to load the whole target_ulong and ext32s_tl to
sign extend it, as done for various other target_ulong COP0 registers.
Fixes: d279279e2b5c ("target-mips: implement UserLocal Register")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Yongbok Kim <yongbok.kim@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Petar Jovanovic <petar.jovanovic@imgtec.com>
Reviewed-by: Yongbok Kim <yongbok.kim@imgtec.com>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Diffstat (limited to 'qdict-test-data.txt')
0 files changed, 0 insertions, 0 deletions