From: Toni Wilen Date: Sun, 17 Sep 2023 08:12:41 +0000 (+0300) Subject: Move FPU save/restore functions. X-Git-Tag: 5.1.0~111 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=61cdfc2b303f9e4153f83dfd45445edd79509e70;p=francis%2Fwinuae.git Move FPU save/restore functions. --- diff --git a/fpp.cpp b/fpp.cpp index 0f7a7dca..46b70944 100644 --- a/fpp.cpp +++ b/fpp.cpp @@ -33,6 +33,7 @@ #include "cpummu.h" #include "cpummu030.h" #include "debug.h" +#include "uae.h" #ifndef CPU_TESTER #define SUPPORT_MMU 1 diff --git a/include/fpp.h b/include/fpp.h index eee535ab..3d7b5c65 100644 --- a/include/fpp.h +++ b/include/fpp.h @@ -38,6 +38,7 @@ extern void init_fpucw_x87(void); extern void init_fpucw_x87_80(void); #endif #endif +extern void fpu_reset(void); #define PREC_NORMAL 0 #define PREC_FLOAT 1 diff --git a/include/newcpu.h b/include/newcpu.h index ad77f062..89dc0c9e 100644 --- a/include/newcpu.h +++ b/include/newcpu.h @@ -753,9 +753,6 @@ extern void fpuop_bcc(uae_u32, uaecptr, uae_u32); extern void fpuop_save(uae_u32); extern void fpuop_restore(uae_u32); extern uae_u32 fpp_get_fpsr (void); -extern void fpu_reset (void); -extern void fpux_save (int*); -extern void fpux_restore (int*); extern bool fpu_get_constant(fpdata *fp, int cr); extern int fpp_cond(int condition); diff --git a/include/uae.h b/include/uae.h index 600b7bc9..a4e871a9 100644 --- a/include/uae.h +++ b/include/uae.h @@ -50,6 +50,9 @@ extern bool target_isrelativemode(void); extern uae_u32 getlocaltime (void); extern bool isguiactive(void); extern bool is_mainthread(void); +extern void fpu_reset(void); +extern void fpux_save(int*); +extern void fpux_restore(int*); extern int quit_program; extern bool console_emulation;