summaryrefslogtreecommitdiff
path: root/target-sparc/op_mem.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-23 14:27:54 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-23 14:27:54 +0000
commit8346901560d96edf94b803fd3f94db940ad370b3 (patch)
tree4f7736383fd41291f63d97c92767409330a7acb9 /target-sparc/op_mem.h
parentb7c7b18129e137bd24240800d7fac02eee3b1edf (diff)
downloadqemu-8346901560d96edf94b803fd3f94db940ad370b3.tar.gz
qemu-8346901560d96edf94b803fd3f94db940ad370b3.tar.bz2
qemu-8346901560d96edf94b803fd3f94db940ad370b3.zip
sparc64 fixes (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1514 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/op_mem.h')
-rw-r--r--target-sparc/op_mem.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/target-sparc/op_mem.h b/target-sparc/op_mem.h
index 2407c15d8b..f5dbd2605f 100644
--- a/target-sparc/op_mem.h
+++ b/target-sparc/op_mem.h
@@ -105,20 +105,10 @@ void OPPROTO glue(op_casx, MEMSUFFIX)(void)
void OPPROTO glue(op_ldsw, MEMSUFFIX)(void)
{
- T1 = (int64_t)glue(ldl, MEMSUFFIX)(T0);
+ T1 = (int64_t)(glue(ldl, MEMSUFFIX)(T0) & 0xffffffff);
}
-void OPPROTO glue(op_ldx, MEMSUFFIX)(void)
-{
- // XXX
- T1 = (uint64_t)glue(ldl, MEMSUFFIX)(T0) << 32;
- T1 |= glue(ldl, MEMSUFFIX)(T0);
-}
-
-void OPPROTO glue(op_stx, MEMSUFFIX)(void)
-{
- glue(stl, MEMSUFFIX)(T0, T1 >> 32);
- glue(stl, MEMSUFFIX)(T0, T1 & 0xffffffff);
-}
+SPARC_LD_OP(ldx, ldq);
+SPARC_ST_OP(stx, stq);
#endif
#undef MEMSUFFIX