From: Nicholas Piggin Date: Tue, 8 Aug 2023 04:20:01 +0000 (+1000) Subject: tests/avocado: ppc64 reverse debugging tests for pseries and powernv X-Git-Tag: v8.2.0-rc0~141^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=761a13b239468c1dd175c2d93fc09c1693a937e7;p=thirdparty%2Fqemu.git tests/avocado: ppc64 reverse debugging tests for pseries and powernv These machines run reverse-debugging well enough to pass basic tests. Wire them up. Reviewed-by: Pavel Dovgalyuk Signed-off-by: Nicholas Piggin Signed-off-by: Cédric Le Goater --- diff --git a/tests/avocado/reverse_debugging.py b/tests/avocado/reverse_debugging.py index 7d1a478df14..fc47874edaa 100644 --- a/tests/avocado/reverse_debugging.py +++ b/tests/avocado/reverse_debugging.py @@ -233,3 +233,32 @@ class ReverseDebugging_AArch64(ReverseDebugging): self.reverse_debugging( args=('-kernel', kernel_path)) + +class ReverseDebugging_ppc64(ReverseDebugging): + """ + :avocado: tags=accel:tcg + """ + + REG_PC = 0x40 + + # unidentified gitlab timeout problem + @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') + def test_ppc64_pseries(self): + """ + :avocado: tags=arch:ppc64 + :avocado: tags=machine:pseries + """ + # SLOF branches back to its entry point, which causes this test + # to take the 'hit a breakpoint again' path. That's not a problem, + # just slightly different than the other machines. + self.endian_is_le = False + self.reverse_debugging() + + @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') + def test_ppc64_powernv(self): + """ + :avocado: tags=arch:ppc64 + :avocado: tags=machine:powernv + """ + self.endian_is_le = False + self.reverse_debugging()