Commit 6f12a2a6ea8fc04e4f98f493de4046cc185fd00a

Authored by bellard
1 parent 0d1e2394

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
... ... @@ -751,26 +751,26 @@ void cpu_x86_load_seg(CPUX86State *s, int seg_reg, int selector)
751 751 env = saved_env;
752 752 }
753 753  
754   -void cpu_x86_fsave(CPUX86State *s, uint8_t *ptr, int data32)
  754 +void cpu_x86_fsave(CPUX86State *s, target_ulong ptr, int data32)
755 755 {
756 756 CPUX86State *saved_env;
757 757  
758 758 saved_env = env;
759 759 env = s;
760 760  
761   - helper_fsave((target_ulong)(unsigned long)ptr, data32);
  761 + helper_fsave(ptr, data32);
762 762  
763 763 env = saved_env;
764 764 }
765 765  
766   -void cpu_x86_frstor(CPUX86State *s, uint8_t *ptr, int data32)
  766 +void cpu_x86_frstor(CPUX86State *s, target_ulong ptr, int data32)
767 767 {
768 768 CPUX86State *saved_env;
769 769  
770 770 saved_env = env;
771 771 env = s;
772 772  
773   - helper_frstor((target_ulong)(unsigned long)ptr, data32);
  773 + helper_frstor(ptr, data32);
774 774  
775 775 env = saved_env;
776 776 }
... ...
target-i386/cpu.h
... ... @@ -670,8 +670,8 @@ CPU86_LDouble cpu_set_fp80(uint64_t mant, uint16_t upper);
670 670 /* the following helpers are only usable in user mode simulation as
671 671 they can trigger unexpected exceptions */
672 672 void cpu_x86_load_seg(CPUX86State *s, int seg_reg, int selector);
673   -void cpu_x86_fsave(CPUX86State *s, uint8_t *ptr, int data32);
674   -void cpu_x86_frstor(CPUX86State *s, uint8_t *ptr, int data32);
  673 +void cpu_x86_fsave(CPUX86State *s, target_ulong ptr, int data32);
  674 +void cpu_x86_frstor(CPUX86State *s, target_ulong ptr, int data32);
675 675  
676 676 /* you can call this signal handler from your SIGBUS and SIGSEGV
677 677 signal handlers to inform the virtual CPU of exceptions. non zero
... ...