summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2008-12-19 22:21:29 +0000
committerhrydgard <hrydgard@gmail.com>2008-12-19 22:21:29 +0000
commit347fc18542971bdb973870befd198cbab703d42c (patch)
treef5a3a8601800648d342a355af4d4b8460cfe3576 /Source/Core/Common
parentcd62fc5c0c2d13b164e17bef594f191aaa602743 (diff)
misc cleanup, bugfix for x86 display in jit window
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1596 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/x64Emitter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/x64Emitter.h b/Source/Core/Common/Src/x64Emitter.h
index b05b0812c8..316101380e 100644
--- a/Source/Core/Common/Src/x64Emitter.h
+++ b/Source/Core/Common/Src/x64Emitter.h
@@ -687,6 +687,11 @@ public:
region_size = 0;
}
+ bool IsInCodeSpace(u8 *ptr)
+ {
+ return ptr >= region && ptr < region + region_size;
+ }
+
// Cannot currently be undone. Will write protect the entire code region.
// Start over if you need to change the code (call FreeCodeSpace(), AllocCodeSpace()).
void WriteProtect()