2
0

replay-tools.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #include "qemu/osdep.h"
  2. #include "sysemu/replay.h"
  3. #include "block/aio.h"
  4. bool replay_events_enabled(void)
  5. {
  6. return false;
  7. }
  8. int64_t replay_save_clock(ReplayClockKind kind,
  9. int64_t clock, int64_t raw_icount)
  10. {
  11. abort();
  12. return 0;
  13. }
  14. int64_t replay_read_clock(ReplayClockKind kind, int64_t raw_icount)
  15. {
  16. abort();
  17. return 0;
  18. }
  19. uint64_t replay_get_current_icount(void)
  20. {
  21. return 0;
  22. }
  23. void replay_bh_schedule_event(QEMUBH *bh)
  24. {
  25. qemu_bh_schedule(bh);
  26. }
  27. void replay_bh_schedule_oneshot_event(AioContext *ctx,
  28. QEMUBHFunc *cb, void *opaque)
  29. {
  30. aio_bh_schedule_oneshot(ctx, cb, opaque);
  31. }
  32. bool replay_checkpoint(ReplayCheckpoint checkpoint)
  33. {
  34. return true;
  35. }
  36. void replay_mutex_lock(void)
  37. {
  38. }
  39. void replay_mutex_unlock(void)
  40. {
  41. }
  42. void replay_register_char_driver(struct Chardev *chr)
  43. {
  44. }
  45. void replay_chr_be_write(struct Chardev *s, const uint8_t *buf, int len)
  46. {
  47. abort();
  48. }
  49. void replay_char_write_event_save(int res, int offset)
  50. {
  51. abort();
  52. }
  53. void replay_char_write_event_load(int *res, int *offset)
  54. {
  55. abort();
  56. }
  57. int replay_char_read_all_load(uint8_t *buf)
  58. {
  59. abort();
  60. }
  61. void replay_char_read_all_save_error(int res)
  62. {
  63. abort();
  64. }
  65. void replay_char_read_all_save_buf(uint8_t *buf, int offset)
  66. {
  67. abort();
  68. }