diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-07-07 20:50:33 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-07-07 20:50:33 +0000 |
commit | dc011987f266878ad29009e4fdbc27f666ab31d2 (patch) | |
tree | d4cadb54e98c2234b8365b3c006888d602f474b5 /target-sparc/op_mem.h | |
parent | 6ef905f69cbeb03e8fe204d8aaa354d77f13a7d7 (diff) |
Use unsigned 32-bit load for ld/lduw
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3051 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/op_mem.h')
-rw-r--r-- | target-sparc/op_mem.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-sparc/op_mem.h b/target-sparc/op_mem.h index f5dbd2605f..a175d0d591 100644 --- a/target-sparc/op_mem.h +++ b/target-sparc/op_mem.h @@ -103,6 +103,11 @@ void OPPROTO glue(op_casx, MEMSUFFIX)(void) T2 = tmp; } +void OPPROTO glue(op_lduw, MEMSUFFIX)(void) +{ + T1 = (uint64_t)(glue(ldl, MEMSUFFIX)(T0) & 0xffffffff); +} + void OPPROTO glue(op_ldsw, MEMSUFFIX)(void) { T1 = (int64_t)(glue(ldl, MEMSUFFIX)(T0) & 0xffffffff); |