Fixing assert in drivers using ARM9 CPU (e.g. 39in1)

This commit is contained in:
Fabio Priuli 2009-07-20 12:13:23 +00:00
parent 0fdce58484
commit ced50d3810

View File

@ -69,7 +69,7 @@ INLINE arm_state *get_safe_token(const device_config *device)
assert(device != NULL);
assert(device->token != NULL);
assert(device->type == CPU);
assert(cpu_get_type(device) == CPU_ARM7);
assert(cpu_get_type(device) == CPU_ARM7 || cpu_get_type(device) == CPU_ARM9);
return (arm_state *)device->token;
}