summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/sh4/sh4comn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/sh4/sh4comn.c')
-rw-r--r--src/emu/cpu/sh4/sh4comn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/cpu/sh4/sh4comn.c b/src/emu/cpu/sh4/sh4comn.c
index ce8304887a9..5c7856de7ce 100644
--- a/src/emu/cpu/sh4/sh4comn.c
+++ b/src/emu/cpu/sh4/sh4comn.c
@@ -35,7 +35,7 @@ INLINE SH4 *get_safe_token(running_device *device)
assert(device != NULL);
assert(device->type() == CPU);
assert(cpu_get_type(device) == CPU_SH4);
- return (SH4 *)downcast<cpu_device *>(device)->token();
+ return (SH4 *)downcast<legacy_cpu_device *>(device)->token();
}
void sh4_change_register_bank(SH4 *sh4, int to)