aboutsummaryrefslogtreecommitdiff
path: root/src/CP15.cpp
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2020-05-12 16:07:28 +0200
committerRSDuck <rsduck@users.noreply.github.com>2020-06-16 12:06:42 +0200
commite7d076403df7afd6dc8304196211b49e3ed7f464 (patch)
tree1d5ff1e743839f271de77f8bd312c985033c6a89 /src/CP15.cpp
parent4cff4b52286a7d1a7e40817d52a5d271a937ddc2 (diff)
parentc17f7b100e36edb1c728dbf21c77f9484d1820c6 (diff)
Merge branch 'generic_jit' of https://github.com/Arisotura/melonDS into generic_jit
Diffstat (limited to 'src/CP15.cpp')
-rw-r--r--src/CP15.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/CP15.cpp b/src/CP15.cpp
index e665dbd..225847e 100644
--- a/src/CP15.cpp
+++ b/src/CP15.cpp
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <string.h>
#include "NDS.h"
+#include "DSi.h"
#include "ARM.h"
#include "ARMJIT.h"
@@ -738,7 +739,7 @@ u32 ARMv5::CodeRead32(u32 addr, bool branch)
if (CodeMem.Mem) return *(u32*)&CodeMem.Mem[addr & CodeMem.Mask];
- return NDS::ARM9Read32(addr);
+ return BusRead32(addr);
}
@@ -759,7 +760,7 @@ void ARMv5::DataRead8(u32 addr, u32* val)
return;
}
- *val = NDS::ARM9Read8(addr);
+ *val = BusRead8(addr);
DataCycles = MemTimings[addr >> 12][1];
}
@@ -782,7 +783,7 @@ void ARMv5::DataRead16(u32 addr, u32* val)
return;
}
- *val = NDS::ARM9Read16(addr);
+ *val = BusRead16(addr);
DataCycles = MemTimings[addr >> 12][1];
}
@@ -805,7 +806,7 @@ void ARMv5::DataRead32(u32 addr, u32* val)
return;
}
- *val = NDS::ARM9Read32(addr);
+ *val = BusRead32(addr);
DataCycles = MemTimings[addr >> 12][2];
}
@@ -826,7 +827,7 @@ void ARMv5::DataRead32S(u32 addr, u32* val)
return;
}
- *val = NDS::ARM9Read32(addr);
+ *val = BusRead32(addr);
DataCycles += MemTimings[addr >> 12][3];
}
@@ -850,7 +851,7 @@ void ARMv5::DataWrite8(u32 addr, u8 val)
return;
}
- NDS::ARM9Write8(addr, val);
+ BusWrite8(addr, val);
DataCycles = MemTimings[addr >> 12][1];
}
@@ -876,7 +877,7 @@ void ARMv5::DataWrite16(u32 addr, u16 val)
return;
}
- NDS::ARM9Write16(addr, val);
+ BusWrite16(addr, val);
DataCycles = MemTimings[addr >> 12][1];
}
@@ -902,7 +903,7 @@ void ARMv5::DataWrite32(u32 addr, u32 val)
return;
}
- NDS::ARM9Write32(addr, val);
+ BusWrite32(addr, val);
DataCycles = MemTimings[addr >> 12][2];
}
@@ -926,7 +927,7 @@ void ARMv5::DataWrite32S(u32 addr, u32 val)
return;
}
- NDS::ARM9Write32(addr, val);
+ BusWrite32(addr, val);
DataCycles += MemTimings[addr >> 12][3];
}
@@ -939,6 +940,6 @@ void ARMv5::GetCodeMemRegion(u32 addr, NDS::MemRegion* region)
return;
}*/
- NDS::ARM9GetMemRegion(addr, false, &CodeMem);
+ GetMemRegion(addr, false, &CodeMem);
}