aboutsummaryrefslogtreecommitdiff
path: root/target-mips/op_template.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-28 17:03:28 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-28 17:03:28 +0000
commit9b9e4393dd08481530f8d6389ed0ac64405aa4fa (patch)
treea221c5135f3c27133b028cdad6669866bf0a33d0 /target-mips/op_template.c
parent4020f27707e748a2da58de72461dc1befd6bc9c5 (diff)
MIPS64 addressing fixes, by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2888 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/op_template.c')
-rw-r--r--target-mips/op_template.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/target-mips/op_template.c b/target-mips/op_template.c
index 04677cd840..8236acc18e 100644
--- a/target-mips/op_template.c
+++ b/target-mips/op_template.c
@@ -68,4 +68,20 @@ SET_RESET(T1, _T1)
SET_RESET(T2, _T2)
#undef SET_RESET
+
+#ifdef TARGET_MIPS64
+#define SET64(treg, tregname) \
+ void glue(op_set64, tregname)(void) \
+ { \
+ treg = ((uint64_t)PARAM1 << 32) | (uint32_t)PARAM2; \
+ RETURN(); \
+ }
+
+SET64(T0, _T0)
+SET64(T1, _T1)
+SET64(T2, _T2)
+
+#undef SET64
+
+#endif
#endif