summaryrefslogtreecommitdiff
path: root/target-mips/cpu.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-21 13:48:28 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-21 13:48:28 +0000
commit5dc4b744806b5f7487989e42a84322fbd5810877 (patch)
tree9694eb3eefb095920f55af4c92b7dd37e9482bb9 /target-mips/cpu.h
parentc570fd169c16f110781f31e0e963542a15229ee9 (diff)
downloadqemu-5dc4b744806b5f7487989e42a84322fbd5810877.tar.gz
Scrap SIGN_EXTEND32.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2251 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/cpu.h')
-rw-r--r--target-mips/cpu.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/target-mips/cpu.h b/target-mips/cpu.h
index 710748c69b..8f0f598b6d 100644
--- a/target-mips/cpu.h
+++ b/target-mips/cpu.h
@@ -15,13 +15,10 @@ typedef unsigned char uint_fast8_t;
typedef unsigned int uint_fast16_t;
#endif
-#ifdef MIPS_HAS_MIPS64
-#define SIGN_EXTEND32(val) (((((uint64_t)(val)) & 0xFFFFFFFF) ^ 0x80000000) - 0x80000000)
/* target_ulong size spec */
+#ifdef MIPS_HAS_MIPS64
#define TLSZ "%016llx"
#else
-#define SIGN_EXTEND32(val) (val)
-/* target_ulong size spec */
#define TLSZ "%08x"
#endif