diff options
author | notaz | 2009-06-21 21:16:51 +0300 |
---|---|---|
committer | notaz | 2009-06-21 21:16:51 +0300 |
commit | f50ad10a9b620788f189f0c44fa79b295f52dab4 (patch) | |
tree | 32eaf742cd8e483a580f3817de8151fbacb93b48 /gp2x | |
parent | 42c8119010bfc48776e8c82e42cceb06d07c0247 (diff) | |
download | picogpsp-f50ad10a9b620788f189f0c44fa79b295f52dab4.tar.gz picogpsp-f50ad10a9b620788f189f0c44fa79b295f52dab4.tar.bz2 picogpsp-f50ad10a9b620788f189f0c44fa79b295f52dab4.zip |
cache clean fix
Diffstat (limited to 'gp2x')
-rw-r--r-- | gp2x/arm_emit.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gp2x/arm_emit.h b/gp2x/arm_emit.h index 522bf48..5d2eee0 100644 --- a/gp2x/arm_emit.h +++ b/gp2x/arm_emit.h @@ -646,12 +646,10 @@ u8 *last_ram_translation_ptr = ram_translation_cache; u8 *last_bios_translation_ptr = bios_translation_cache; #define translate_invalidate_dcache_one(which) \ - if (which##_translation_ptr < last_##which##_translation_ptr) \ - last_##which##_translation_ptr = which##_translation_cache; \ 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_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; \ } @@ -661,9 +659,6 @@ u8 *last_bios_translation_ptr = bios_translation_cache; translate_invalidate_dcache_one(rom) \ translate_invalidate_dcache_one(ram) \ translate_invalidate_dcache_one(bios) \ - /* notaz: tried cleaning dcache ranges, but it doesn't work for every game, \ - * don't know why */ \ - warm_cache_op_all(WOP_D_CLEAN); \ } #define invalidate_icache_region(addr, size) \ |