]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Cleanup.
authorToni Wilen <twilen@winuae.net>
Sun, 7 May 2017 11:58:36 +0000 (14:58 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 7 May 2017 11:58:36 +0000 (14:58 +0300)
gfxboard.cpp
include/newcpu.h
jit/compemu.h
jit/compemu_support.cpp
memory.cpp
newcpu.cpp
newcpu_common.cpp

index 60ddf714f15602a5cfbea19cc13916179863e6ce..e238177b0ef9648ac0ba5d5a32aa079066717062 100644 (file)
@@ -987,7 +987,7 @@ static void jit_reset (void)
 {
 #ifdef JIT
        if (currprefs.cachesize && (!currprefs.comptrustbyte || !currprefs.comptrustword || !currprefs.comptrustlong)) {
-               flush_icache (0, 3);
+               flush_icache (3);
        }
 #endif
 }
index ebee8729958f7f629522c8925e489845dcd90694..e634755556536dc76f062c96f9dfc95bc809df7c 100644 (file)
@@ -659,12 +659,12 @@ extern const struct cputbl op_smalltbl_14_ff[]; // CE
 extern cpuop_func *cpufunctbl[65536] ASM_SYM_FOR_FUNC ("cpufunctbl");
 
 #ifdef JIT
-extern void flush_icache(uaecptr, int);
-extern void flush_icache_hard(uaecptr, int);
+extern void flush_icache(int);
+extern void flush_icache_hard(int);
 extern void compemu_reset(void);
 #else
-#define flush_icache(uaecptr, int) do {} while (0)
-#define flush_icache_hard(uaecptr, int) do {} while (0)
+#define flush_icache(int) do {} while (0)
+#define flush_icache(int) do {} while (0)
 #endif
 bool check_prefs_changed_comp (bool);
 extern void flush_dcache (uaecptr, int);
index f565a30d3df94b162f0f86b7a36d469032235d74..45f06aa38ffc4afb85d747770e8692e9bd4ead52 100644 (file)
@@ -162,16 +162,8 @@ extern void set_cache_state(int enabled);
 extern int get_cache_state(void);
 extern uae_u32 get_jitted_size(void);
 #ifdef JIT
-extern void flush_icache(uaecptr ptr, int n);
-extern void flush_icache_hard(uaecptr ptr, int n);
-static inline void flush_icache(int n)
-{
-       flush_icache(0, n);
-}
-static inline void flush_icache_hard(int n)
-{
-       flush_icache(0, n);
-}
+extern void flush_icache(int n);
+extern void flush_icache_hard(int n);
 #endif
 extern void alloc_cache(void);
 extern int check_for_cache_miss(void);
index 4afbc3719a23de9029ff9308943ae01ca08968f7..9fa7c339cfd7124135bd1dfae86e97d026a25e08 100644 (file)
@@ -3357,7 +3357,7 @@ void calc_disp_ea_020(int base, uae_u32 dp, int target, int tmp)
 void set_cache_state(int enabled)
 {
        if (enabled!=letit)
-               flush_icache_hard(0, 3);
+               flush_icache_hard(3);
        letit=enabled;
 }
 
@@ -3436,7 +3436,7 @@ static inline uint8 *alloc_code(uint32 size)
 void alloc_cache(void)
 {
        if (compiled_code) {
-               flush_icache_hard(0, 3);
+               flush_icache_hard(3);
                vm_release(compiled_code, cache_size * 1024);
                compiled_code = 0;
        }
@@ -4096,7 +4096,7 @@ static void flush_icache_none(int)
        /* Nothing to do.  */
 }
 
-void flush_icache_hard(uaecptr ptr, int n)
+void flush_icache_hard(int n)
 {
        blockinfo* bi, *dbi;
 
@@ -4132,13 +4132,13 @@ void flush_icache_hard(uaecptr ptr, int n)
    we simply mark everything as "needs to be checked".
 */
 
-void flush_icache(uaecptr ptr, int n)
+void flush_icache(int n)
 {
        blockinfo* bi;
        blockinfo* bi2;
 
        if (currprefs.comp_hardflush) {
-               flush_icache_hard(ptr, n);
+               flush_icache_hard(n);
                return;
        }
        soft_flush_count++;
@@ -4346,7 +4346,7 @@ static void compile_block(cpu_history* pc_hist, int blocklen)
 
                redo_current_block=0;
                if (current_compile_p >= MAX_COMPILE_PTR)
-                       flush_icache_hard(0, 3);
+                       flush_icache_hard(3);
 
                alloc_blockinfos();
 
@@ -4829,7 +4829,7 @@ static void compile_block(cpu_history* pc_hist, int blocklen)
 
                /* We will flush soon, anyway, so let's do it now */
                if (current_compile_p >= MAX_COMPILE_PTR)
-                       flush_icache_hard(0, 3);
+                       flush_icache_hard(3);
 
                bi->status=BI_ACTIVE;
                if (redo_current_block)
index 7f67e917d5fcfc3aff6d3afbdbf398c4a50adf74..3f278cd01dee8a8cd8720caddb46eca2cd70c867 100644 (file)
@@ -2910,7 +2910,7 @@ static void map_banks2 (addrbank *bank, int start, int size, int realsize, int q
 
        if (quick <= 0)
                old = debug_bankchange (-1);
-       flush_icache_hard (0, 3); /* Sure don't want to keep any old mappings around! */
+       flush_icache_hard (3); /* Sure don't want to keep any old mappings around! */
 #ifdef NATMEM_OFFSET
        if (!quick)
                delete_shmmaps (start << 16, size << 16);
index 7bd2b5384e6caf4493ea8e9ac476b25e9a4463a3..b1d4d9e23c824f7bcc7eccc39e4deaea5e7101cc 100644 (file)
@@ -1257,7 +1257,7 @@ void set_cpu_caches (bool flush)
                if (currprefs.cpu_model < 68040) {
                        set_cache_state (regs.cacr & 1);
                        if (regs.cacr & 0x08) {
-                               flush_icache (0, 3);
+                               flush_icache (3);
                        }
                } else {
                        set_cache_state ((regs.cacr & 0x8000) ? 1 : 0);
index 7c71e2c98d7d4585ca355df9898490f3ca75cc6e..0e5f0056e1491e9f7fca3d99cc5dd3a2f6064f9e 100644 (file)
@@ -163,7 +163,7 @@ int m68k_move2c (int regno, uae_u32 *regp)
                                if (((opcr ^ regs.pcr) & 2) == 2) {
                                        write_log (_T("68060 FPU state: %s\n"), regs.pcr & 2 ? _T("disabled") : _T("enabled"));
                                        /* flush possible already translated FPU instructions */
-                                       flush_icache (0, 3);
+                                       flush_icache (3);
                                }
                        }
                        break;