diff options
-rw-r--r-- | cpu-exec.c | 8 | ||||
-rw-r--r-- | target-i386/cpu.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cpu-exec.c b/cpu-exec.c index 8de14e280e..1c7356a0df 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -751,26 +751,26 @@ void cpu_x86_load_seg(CPUX86State *s, int seg_reg, int selector) env = saved_env; } -void cpu_x86_fsave(CPUX86State *s, uint8_t *ptr, int data32) +void cpu_x86_fsave(CPUX86State *s, target_ulong ptr, int data32) { CPUX86State *saved_env; saved_env = env; env = s; - helper_fsave((target_ulong)(unsigned long)ptr, data32); + helper_fsave(ptr, data32); env = saved_env; } -void cpu_x86_frstor(CPUX86State *s, uint8_t *ptr, int data32) +void cpu_x86_frstor(CPUX86State *s, target_ulong ptr, int data32) { CPUX86State *saved_env; saved_env = env; env = s; - helper_frstor((target_ulong)(unsigned long)ptr, data32); + helper_frstor(ptr, data32); env = saved_env; } diff --git a/target-i386/cpu.h b/target-i386/cpu.h index a6ad54be3a..910a4b48ce 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -670,8 +670,8 @@ CPU86_LDouble cpu_set_fp80(uint64_t mant, uint16_t upper); /* the following helpers are only usable in user mode simulation as they can trigger unexpected exceptions */ void cpu_x86_load_seg(CPUX86State *s, int seg_reg, int selector); -void cpu_x86_fsave(CPUX86State *s, uint8_t *ptr, int data32); -void cpu_x86_frstor(CPUX86State *s, uint8_t *ptr, int data32); +void cpu_x86_fsave(CPUX86State *s, target_ulong ptr, int data32); +void cpu_x86_frstor(CPUX86State *s, target_ulong ptr, int data32); /* you can call this signal handler from your SIGBUS and SIGSEGV signal handlers to inform the virtual CPU of exceptions. non zero |