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