summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco José García García2019-11-09 10:47:18 +0100
committerFrancisco José García García2019-11-09 13:54:30 +0100
commit5afe4c2a3974d6e48a977db85f7aab75e8bcc3d3 (patch)
tree1aaa303ff7d2058db658f23948b32bb8d95e7093
parent3f17223e1a874dd8e34151db6dd6d0408a4db9f7 (diff)
downloadpicogpsp-5afe4c2a3974d6e48a977db85f7aab75e8bcc3d3.tar.gz
picogpsp-5afe4c2a3974d6e48a977db85f7aab75e8bcc3d3.tar.bz2
picogpsp-5afe4c2a3974d6e48a977db85f7aab75e8bcc3d3.zip
[VITA] Fixes bug causing dynarec stuttering
-rw-r--r--cpu_threaded.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/cpu_threaded.c b/cpu_threaded.c
index 7386d0c..16a4852 100644
--- a/cpu_threaded.c
+++ b/cpu_threaded.c
@@ -241,20 +241,6 @@ extern u8 bit_count[256];
#endif
-static INLINE void RW_INIT(void)
-{
-#ifdef VITA
- sceKernelOpenVMDomain();
-#endif
-}
-
-static INLINE void RW_END(void)
-{
-#ifdef VITA
- sceKernelCloseVMDomain();
-#endif
-}
-
/* Cache invalidation */
#if defined(PSP)
@@ -267,6 +253,7 @@ static INLINE void RW_END(void)
{ \
sceKernelSyncVMDomain(sceBlock,last_##which##_translation_ptr, \
which##_translation_ptr - last_##which##_translation_ptr); \
+ last_##which##_translation_ptr = which##_translation_ptr; \
}
#define translate_invalidate_dcache() \