summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/memory.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2007-12-17 16:37:57 +0000
committer Aaron Giles <aaron@aarongiles.com>2007-12-17 16:37:57 +0000
commitc82a966b3b72d79ac3ce394980d6b5806e752160 (patch)
treef46dd63acdd83498db10a0563bb4e874df26d903 /src/emu/memory.c
parent8a8ccc594989d85f2277c48d3c158f7cee41d06b (diff)
Changes for MAME 0.121u2.mame0121u2
Diffstat (limited to 'src/emu/memory.c')
-rw-r--r--src/emu/memory.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/memory.c b/src/emu/memory.c
index d8fdee22a21..826ea4496d4 100644
--- a/src/emu/memory.c
+++ b/src/emu/memory.c
@@ -595,6 +595,12 @@ void memory_set_opbase(offs_t pc)
entry = space->readlookup[LEVEL1_INDEX(pc)];
if (entry >= SUBTABLE_BASE)
entry = space->readlookup[LEVEL2_INDEX(entry,pc)];
+
+ /* if this entry if the current one, no need to go further */
+ if (entry == opcode_entry)
+ return;
+
+ /* keep track of current entry */
opcode_entry = entry;
/* if we don't map to a bank, see if there are any banks we can map to */