summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sh2/sh2drc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/sh2/sh2drc.cpp')
-rw-r--r--src/devices/cpu/sh2/sh2drc.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/cpu/sh2/sh2drc.cpp b/src/devices/cpu/sh2/sh2drc.cpp
index db732e57b40..e7b2460198a 100644
--- a/src/devices/cpu/sh2/sh2drc.cpp
+++ b/src/devices/cpu/sh2/sh2drc.cpp
@@ -11,7 +11,6 @@
#include "debugger.h"
#include "sh2.h"
#include "sh2comn.h"
-#include "mconfig.h"
extern unsigned DasmSH2(char *buffer, unsigned pc, UINT16 opcode);
@@ -2946,7 +2945,7 @@ int sh2_device::generate_group_12(drcuml_block *block, compiler_state *compiler,
void sh2_device::sh2drc_set_options(UINT32 options)
{
- if (!(mconfig().options().drc() && !mconfig().m_force_no_drc)) return;
+ if (!allow_drc()) return;
m_drcoptions = options;
}
@@ -2958,7 +2957,7 @@ void sh2_device::sh2drc_set_options(UINT32 options)
void sh2_device::sh2drc_add_pcflush(offs_t address)
{
- if (!(mconfig().options().drc() && !mconfig().m_force_no_drc)) return;
+ if (!allow_drc()) return;
if (m_pcfsel < ARRAY_LENGTH(m_pcflushes))
m_pcflushes[m_pcfsel++] = address;