summaryrefslogtreecommitdiff
path: root/arm/arm_emit.h
diff options
context:
space:
mode:
authortwinaphex2014-12-11 18:47:48 +0100
committertwinaphex2014-12-11 18:47:48 +0100
commit5b59ef3acc721639ebc1c78ab42fe64f4e30ab6d (patch)
treeac8df419383ab459746cfaac0a7843c042ac5b7d /arm/arm_emit.h
parent97166d5cbde98ea2c153c813b84653e6fbfdeba8 (diff)
downloadpicogpsp-5b59ef3acc721639ebc1c78ab42fe64f4e30ab6d.tar.gz
picogpsp-5b59ef3acc721639ebc1c78ab42fe64f4e30ab6d.tar.bz2
picogpsp-5b59ef3acc721639ebc1c78ab42fe64f4e30ab6d.zip
Reimplement cache invalidation code
Diffstat (limited to 'arm/arm_emit.h')
-rw-r--r--arm/arm_emit.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/arm/arm_emit.h b/arm/arm_emit.h
index cf2602e..fe7cc31 100644
--- a/arm/arm_emit.h
+++ b/arm/arm_emit.h
@@ -636,33 +636,8 @@ u32 arm_disect_imm_32bit(u32 imm, u32 *stores, u32 *rotations)
} \
} \
-u8 *last_rom_translation_ptr = NULL;
-u8 *last_ram_translation_ptr = NULL;
-u8 *last_bios_translation_ptr = NULL;
-
-#define translate_invalidate_dcache_one(which) \
- if (which##_translation_ptr > last_##which##_translation_ptr) \
- { \
- warm_cache_op_range(WOP_D_CLEAN, last_##which##_translation_ptr, \
- which##_translation_ptr - last_##which##_translation_ptr); \
- warm_cache_op_range(WOP_I_INVALIDATE, last_##which##_translation_ptr, 32);\
- last_##which##_translation_ptr = which##_translation_ptr; \
- }
-
-#define translate_invalidate_dcache() \
-{ \
- translate_invalidate_dcache_one(rom) \
- translate_invalidate_dcache_one(ram) \
- translate_invalidate_dcache_one(bios) \
-}
-
-#define invalidate_icache_region(addr, size) \
- warm_cache_op_range(WOP_I_INVALIDATE, addr, size)
-
-
#define block_prologue_size 0
-
// It should be okay to still generate result flags, spsr will overwrite them.
// This is pretty infrequent (returning from interrupt handlers, et al) so
// probably not worth optimizing for.