]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional: Require TCG to run reverse debugging tests
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 14 Jan 2026 21:21:13 +0000 (22:21 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 16 Jan 2026 10:17:28 +0000 (11:17 +0100)
Record/replay is specific to TCG. Require it to avoid failure
when using a HVF-only build on Darwin:

  qemu-system-aarch64: -icount shift=7,rr=record,rrfile=/scratch/replay.bin,rrsnapshot=init: cannot configure icount, TCG support not available

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-ID: <20260115161029.24116-1-philmd@linaro.org>

tests/functional/reverse_debugging.py

index 8b9507674a041aa8b8e87f755a377bb20cc5e98c..8e6f0b0e9232ccb629b6f354a43123438c857145 100644 (file)
@@ -67,6 +67,8 @@ class ReverseDebugging(LinuxKernelTest):
     def reverse_debugging(self, gdb_arch, shift=7, args=None, big_endian=False):
         from qemu_test import GDB
 
+        self.require_accelerator("tcg")
+
         # create qcow2 for snapshots
         self.log.info('creating qcow2 image for VM snapshots')
         image_path = os.path.join(self.workdir, 'disk.qcow2')