From 6f12a2a6ea8fc04e4f98f493de4046cc185fd00a Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 11 Nov 2007 22:16:56 +0000 Subject: [PATCH] consistent types for cpu_x86_fsave and cpu_x86_frstor git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3621 c046a42c-6fe2-441c-8c8c-71466251a162 --- cpu-exec.c | 8 ++++---- 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 -- 2.11.0