xref: /openbmc/qemu/tests/functional/ppc64/test_reverse_debug.py (revision 7ae004869aff46fc3195d280b25dc9b94a447be7)
1#!/usr/bin/env python3
2#
3# SPDX-License-Identifier: GPL-2.0-or-later
4#
5# Reverse debugging test for ppc64
6#
7# Copyright (c) 2020 ISP RAS
8# Copyright (c) 2025 Linaro Limited
9#
10# Author:
11#  Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
12#  Gustavo Romero <gustavo.romero@linaro.org> (Run without Avocado)
13#
14# This work is licensed under the terms of the GNU GPL, version 2 or
15# later.  See the COPYING file in the top-level directory.
16
17from qemu_test import skipFlakyTest
18from reverse_debugging import ReverseDebugging
19
20
21class ReverseDebuggingPpc64(ReverseDebugging):
22
23    @skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/1992")
24    def test_ppc64_pseries(self):
25        self.set_machine('pseries')
26        # SLOF branches back to its entry point, which causes this test
27        # to take the 'hit a breakpoint again' path. That's not a problem,
28        # just slightly different than the other machines.
29        self.reverse_debugging(gdb_arch='powerpc:common64')
30
31    @skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/1992")
32    def test_ppc64_powernv(self):
33        self.set_machine('powernv')
34        self.reverse_debugging(gdb_arch='powerpc:common64')
35
36
37if __name__ == '__main__':
38    ReverseDebugging.main()
39