diff options
author | 2011-04-30 05:12:28 +0000 | |
---|---|---|
committer | 2011-04-30 05:12:28 +0000 | |
commit | 2465eb7e4eb5907030deee47df154111b40722d2 (patch) | |
tree | 5f8a4977110c61be9f0e3f9fefdeb359f8674ca1 /src/emu/cpu/g65816 | |
parent | de178033502ab8693e7196cc59cf801cba1c7dc1 (diff) |
Converted presave/postload functions to delegates. In a lot of
cases, we can get rid of the postload function entirely and just
call directly to the target function. Drivers eventually should
just override device_postload() instead of registering for callbacks.
Diffstat (limited to 'src/emu/cpu/g65816')
-rw-r--r-- | src/emu/cpu/g65816/g65816.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/emu/cpu/g65816/g65816.c b/src/emu/cpu/g65816/g65816.c index 40b60128c4b..db45976f95a 100644 --- a/src/emu/cpu/g65816/g65816.c +++ b/src/emu/cpu/g65816/g65816.c @@ -318,10 +318,8 @@ static CPU_DISASSEMBLE( g65816 ) return g65816_disassemble(buffer, (pc & 0x00ffff), (pc & 0xff0000) >> 16, oprom, FLAG_M, FLAG_X); } -static STATE_POSTLOAD( g65816_restore_state ) +static void g65816_restore_state(g65816i_cpu_struct *cpustate) { - g65816i_cpu_struct *cpustate = (g65816i_cpu_struct *)param; - // restore proper function pointers g65816i_set_execution_mode(cpustate, (FLAG_M>>4) | (FLAG_X>>4)); @@ -365,7 +363,7 @@ static CPU_INIT( g65816 ) device->save_item(NAME(cpustate->irq_delay)); device->save_item(NAME(cpustate->stopped)); - device->machine().save().register_postload(g65816_restore_state, cpustate); + device->machine().save().register_postload(save_prepost_delegate(FUNC(g65816_restore_state), cpustate)); } /************************************************************************** |