diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-30 19:01:19 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-30 19:01:19 +0000 |
commit | 9b64997f464bcef06739e9c81a927bf48c375255 (patch) | |
tree | 1802fa7d6d89fc071e4e9101eb3b4d832a230035 /hw/mac_dbdma.c | |
parent | ac0df51d7b3e0a76923a03efa2cfdec4b9f65ef5 (diff) |
VM load/save support for PPC devices
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6142 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/mac_dbdma.c')
-rw-r--r-- | hw/mac_dbdma.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hw/mac_dbdma.c b/hw/mac_dbdma.c index 71f14e5e0c..13fbd7bf87 100644 --- a/hw/mac_dbdma.c +++ b/hw/mac_dbdma.c @@ -88,6 +88,18 @@ static CPUReadMemoryFunc *dbdma_read[] = { &dbdma_readl, }; +static void dbdma_save(QEMUFile *f, void *opaque) +{ +} + +static int dbdma_load(QEMUFile *f, void *opaque, int version_id) +{ + if (version_id != 1) + return -EINVAL; + + return 0; +} + static void dbdma_reset(void *opaque) { } @@ -95,6 +107,7 @@ static void dbdma_reset(void *opaque) void dbdma_init (int *dbdma_mem_index) { *dbdma_mem_index = cpu_register_io_memory(0, dbdma_read, dbdma_write, NULL); + register_savevm("dbdma", -1, 1, dbdma_save, dbdma_load, NULL); qemu_register_reset(dbdma_reset, NULL); dbdma_reset(NULL); } |