diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-14 19:22:05 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-14 19:22:05 +0000 |
commit | 7d55170268abe2fedc96a662edff52bfe68763a6 (patch) | |
tree | f5b6989581e774abeeb0d81e9ed653b4abade6e1 /cpu-exec.c | |
parent | 2e56350ef10e06373b4c6aa715bb2f8b3db50f51 (diff) | |
download | qemu-7d55170268abe2fedc96a662edff52bfe68763a6.zip qemu-7d55170268abe2fedc96a662edff52bfe68763a6.tar.gz qemu-7d55170268abe2fedc96a662edff52bfe68763a6.tar.bz2 |
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.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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) |