mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
replay: do not build if TCG is not available
this fixes non-TCG builds broken recently by replay reverse debugging. Stub the needed functions in stub/, splitting roughly between functions needed only by system emulation, by system emulation and tools, and by everyone. This includes duplicating some code in replay/, and puts the logic for non-replay related events in the replay/ module (+ the stubs), so this should be revisited in the future. Surprisingly, only _one_ qtest was affected by this, ide-test.c, which resulted in a buzz as the bh events were never delivered, and the bh never executed. Many other subsystems _should_ have been affected. This fixes the immediate issue, however a better way to group replay functionality to TCG-only code could be developed in the long term. Signed-off-by: Claudio Fontana <cfontana@suse.de> Message-Id: <20201013192123.22632-4-cfontana@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c51a5a23d8
commit
9b1c911654
10 changed files with 191 additions and 97 deletions
|
@ -32,7 +32,6 @@ stub_ss.add(files('qtest.c'))
|
|||
stub_ss.add(files('ram-block.c'))
|
||||
stub_ss.add(files('ramfb.c'))
|
||||
stub_ss.add(files('replay.c'))
|
||||
stub_ss.add(files('replay-user.c'))
|
||||
stub_ss.add(files('runstate-check.c'))
|
||||
stub_ss.add(files('set-fd-handler.c'))
|
||||
stub_ss.add(files('sysbus.c'))
|
||||
|
@ -46,6 +45,9 @@ stub_ss.add(files('vmstate.c'))
|
|||
stub_ss.add(files('vm-stop.c'))
|
||||
stub_ss.add(files('win32-kbd-hook.c'))
|
||||
stub_ss.add(files('cpu-synchronize-state.c'))
|
||||
if have_block
|
||||
stub_ss.add(files('replay-tools.c'))
|
||||
endif
|
||||
if have_system
|
||||
stub_ss.add(files('semihost.c'))
|
||||
stub_ss.add(files('xen-hw-stub.c'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue