summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/sh2/sh2drc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/sh2/sh2drc.c')
-rw-r--r--src/emu/cpu/sh2/sh2drc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/cpu/sh2/sh2drc.c b/src/emu/cpu/sh2/sh2drc.c
index 97e0e609b46..9e3b76fbaf6 100644
--- a/src/emu/cpu/sh2/sh2drc.c
+++ b/src/emu/cpu/sh2/sh2drc.c
@@ -143,7 +143,7 @@ INLINE SH2 *get_safe_token(running_device *device)
assert(device->type() == CPU);
assert(cpu_get_type(device) == CPU_SH1 ||
cpu_get_type(device) == CPU_SH2);
- return *(SH2 **)downcast<cpu_device *>(device)->token();
+ return *(SH2 **)downcast<legacy_cpu_device *>(device)->token();
}
INLINE UINT16 RW(SH2 *sh2, offs_t A)