]> git.proxmox.com Git - mirror_qemu.git/commit - cpu-target.c
replay: Extract core API to 'exec/replay-core.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 19 Dec 2022 17:09:43 +0000 (18:09 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 27 Feb 2023 21:29:01 +0000 (22:29 +0100)
commit5b5968c47774c3eca51c6d3db80b9479b015f9bd
tree5a16b3cec15956eaea08c4c768e47c0ff7fa83dc
parent5db2dac46220df5143dfe17dfa3d97957f710360
replay: Extract core API to 'exec/replay-core.h'

replay API is used deeply within TCG common code (common to user
and system emulation). Unfortunately "sysemu/replay.h" requires
some QAPI headers for few system-specific declarations, example:

  void replay_input_event(QemuConsole *src, InputEvent *evt);

Since commit c2651c0eaa ("qapi/meson: Restrict UI module to system
emulation and tools") the QAPI header defining the InputEvent is
not generated anymore.
To keep it simple, extract the 'core' replay prototypes to a new
"exec/replay-core.h" header which we include in the TCG code that
doesn't need the rest of the replay API.

Reviewed-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Message-Id: <20221219170806.60580-5-philmd@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
13 files changed:
MAINTAINERS
accel/tcg/cpu-exec.c
accel/tcg/tcg-all.c
accel/tcg/translator.c
accel/tcg/user-exec-stub.c
cpu.c
gdbstub/gdbstub.c
hw/core/ptimer.c
include/exec/replay-core.h [new file with mode: 0644]
include/sysemu/replay.h
stubs/replay.c
tests/unit/ptimer-test-stubs.c
util/guest-random.c