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