aboutsummaryrefslogtreecommitdiff
path: root/cpu-exec.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-14 19:22:05 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-14 19:22:05 +0000
commit7d55170268abe2fedc96a662edff52bfe68763a6 (patch)
treef5b6989581e774abeeb0d81e9ed653b4abade6e1 /cpu-exec.c
parent2e56350ef10e06373b4c6aa715bb2f8b3db50f51 (diff)
Fix compilation on Sparc host, implement ld and st
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4457 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-exec.c')
-rw-r--r--cpu-exec.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/cpu-exec.c b/cpu-exec.c
index 30caab15f2..435fdf85df 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -53,19 +53,14 @@ static unsigned long next_tb;
// Work around ugly bugs in glibc that mangle global register contents
static volatile void *saved_env;
-static volatile unsigned long saved_t0, saved_i7;
#undef SAVE_GLOBALS
#define SAVE_GLOBALS() do { \
saved_env = env; \
- saved_t0 = T0; \
- asm volatile ("st %%i7, [%0]" : : "r" (&saved_i7)); \
} while(0)
#undef RESTORE_GLOBALS
#define RESTORE_GLOBALS() do { \
env = (void *)saved_env; \
- T0 = saved_t0; \
- asm volatile ("ld [%0], %%i7" : : "r" (&saved_i7)); \
} while(0)
static int sparc_setjmp(jmp_buf buf)