diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-02 01:03:34 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-02 01:03:34 +0000 |
commit | 01d6a890b4dbfa63a6c2e23a768f0e6c9bee55e0 (patch) | |
tree | 2f88fc70593a1e65ccdb76554be5484a8410102f /target-mips | |
parent | 6a1cbf68b7cbb6967f218a2cf65345518b49706a (diff) |
Sparc arm/mips/sparc register patch, by Martin Bochnig.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2377 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips')
-rw-r--r-- | target-mips/exec.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target-mips/exec.h b/target-mips/exec.h index 15397b6920..1e9fa8e691 100644 --- a/target-mips/exec.h +++ b/target-mips/exec.h @@ -7,7 +7,11 @@ #include "mips-defs.h" #include "dyngen-exec.h" +#if defined(__sparc__) +struct CPUMIPSState *env; +#else register struct CPUMIPSState *env asm(AREG0); +#endif #if defined (USE_64BITS_REGS) typedef int64_t host_int_t; @@ -17,6 +21,11 @@ typedef int32_t host_int_t; typedef uint32_t host_uint_t; #endif +#if defined(__sparc__) +host_uint_t T0; +host_uint_t T1; +host_uint_t T2; +#else #if TARGET_LONG_BITS > HOST_LONG_BITS #define T0 (env->t0) #define T1 (env->t1) @@ -26,6 +35,7 @@ register host_uint_t T0 asm(AREG1); register host_uint_t T1 asm(AREG2); register host_uint_t T2 asm(AREG3); #endif +#endif #if defined (USE_HOST_FLOAT_REGS) #error "implement me." |