summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/lr35902/lr35902.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/lr35902/lr35902.c')
-rw-r--r--src/emu/cpu/lr35902/lr35902.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/cpu/lr35902/lr35902.c b/src/emu/cpu/lr35902/lr35902.c
index f87e2f1c44b..69efd30d14f 100644
--- a/src/emu/cpu/lr35902/lr35902.c
+++ b/src/emu/cpu/lr35902/lr35902.c
@@ -116,8 +116,7 @@ union _lr35902_state {
INLINE lr35902_state *get_safe_token(running_device *device)
{
assert(device != NULL);
- assert(device->type() == CPU);
- assert(cpu_get_type(device) == CPU_LR35902);
+ assert(device->type() == LR35902);
return (lr35902_state *)downcast<legacy_cpu_device *>(device)->token();
}
@@ -491,3 +490,5 @@ CPU_GET_INFO( lr35902 )
case CPUINFO_STR_REGISTER + LR35902_IF: sprintf(info->s, "IF:%02X", cpustate->w.IF); break;
}
}
+
+DEFINE_LEGACY_CPU_DEVICE(LR35902, lr35902);