Fixed crash when hitting watchpoints on static handlers.

This commit is contained in:
Aaron Giles 2008-09-13 06:36:29 +00:00
parent 0bf917467e
commit fc453dc652

View File

@ -1675,7 +1675,9 @@ static void memory_init_cpudata(running_machine *machine)
for (entrynum = 0; entrynum < ENTRY_COUNT; entrynum++)
{
space->read.handlers[entrynum].handler.generic = get_static_handler(space->dbits, 0, spacenum, entrynum);
space->read.handlers[entrynum].object = machine;
space->write.handlers[entrynum].handler.generic = get_static_handler(space->dbits, 1, spacenum, entrynum);
space->write.handlers[entrynum].object = machine;
}
/* make sure we fix up the mask for the unmap and watchpoint handlers */