clock-vmstate.c 540 B

12345678910111213141516171819202122232425
  1. /*
  2. * Clock migration structure
  3. *
  4. * Copyright GreenSocs 2019-2020
  5. *
  6. * Authors:
  7. * Damien Hedde
  8. *
  9. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  10. * See the COPYING file in the top-level directory.
  11. */
  12. #include "qemu/osdep.h"
  13. #include "migration/vmstate.h"
  14. #include "hw/clock.h"
  15. const VMStateDescription vmstate_clock = {
  16. .name = "clock",
  17. .version_id = 0,
  18. .minimum_version_id = 0,
  19. .fields = (VMStateField[]) {
  20. VMSTATE_UINT64(period, Clock),
  21. VMSTATE_END_OF_LIST()
  22. }
  23. };