Register reset handlers
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6136 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/hw/mac_nvram.c b/hw/mac_nvram.c
index b4e9deb..c1281c3 100644
--- a/hw/mac_nvram.c
+++ b/hw/mac_nvram.c
@@ -104,6 +104,10 @@
&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 @@
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;
}