Commit 0c2504555f6dae302a391a54fb331fbee3c62d01

Authored by Evgeniy Dushistov
1 parent 69efbf18

code for saving and loading at91_pmc's mo_freq

Showing 1 changed file with 2 additions and 0 deletions
hw/at91_pmc.c
... ... @@ -238,6 +238,7 @@ static void at91_pmc_save(QEMUFile *f, void *opaque)
238 238 }
239 239 qemu_put_be32(f, s->sr);
240 240 qemu_put_be32(f, s->imr);
  241 + qemu_put_be32(f, s->mo_freq);
241 242 }
242 243  
243 244 static int at91_pmc_load(QEMUFile *f, void *opaque, int version_id)
... ... @@ -259,6 +260,7 @@ static int at91_pmc_load(QEMUFile *f, void *opaque, int version_id)
259 260 }
260 261 s->sr = qemu_get_be32(f);
261 262 s->imr = qemu_get_be32(f);
  263 + s->mo_freq = qemu_get_be32(f);
262 264  
263 265 at91_update_master_clock(s);
264 266  
... ...