aboutsummaryrefslogtreecommitdiff
path: root/src/CP15.cpp
diff options
context:
space:
mode:
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);
}