aboutsummaryrefslogtreecommitdiff
path: root/src/CP15.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CP15.cpp')
-rw-r--r--src/CP15.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/CP15.cpp b/src/CP15.cpp
index e3f0bae..229c560 100644
--- a/src/CP15.cpp
+++ b/src/CP15.cpp
@@ -316,4 +316,16 @@ bool HandleDataWrite32(u32 addr, u32 val, u32 forceuser)
return false;
}
+bool GetCodeMemRegion(u32 addr, NDS::MemRegion* region)
+{
+ if (addr < ITCMSize)
+ {
+ region->Mem = ITCM;
+ region->Mask = 0x7FFF;
+ return true;
+ }
+
+ return false;
+}
+
}