mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
Register reset handlers
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6136 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
b4e237aae7
commit
6e6b736313
9 changed files with 159 additions and 19 deletions
|
@ -104,6 +104,10 @@ static CPUReadMemoryFunc *nvram_read[] = {
|
|||
&macio_nvram_readb,
|
||||
};
|
||||
|
||||
static void macio_nvram_reset(void *opaque)
|
||||
{
|
||||
}
|
||||
|
||||
MacIONVRAMState *macio_nvram_init (int *mem_index, target_phys_addr_t size)
|
||||
{
|
||||
MacIONVRAMState *s;
|
||||
|
@ -120,6 +124,8 @@ MacIONVRAMState *macio_nvram_init (int *mem_index, target_phys_addr_t size)
|
|||
|
||||
s->mem_index = cpu_register_io_memory(0, nvram_read, nvram_write, s);
|
||||
*mem_index = s->mem_index;
|
||||
qemu_register_reset(macio_nvram_reset, s);
|
||||
macio_nvram_reset(s);
|
||||
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue