]> git.proxmox.com Git - mirror_qemu.git/blame - tests/tcg/s390x/gdbstub/test-svc.py
Merge tag 'pull-trivial-patches' of https://gitlab.com/mjt0k/qemu into staging
[mirror_qemu.git] / tests / tcg / s390x / gdbstub / test-svc.py
CommitLineData
be4a4cb4
IL
1"""Test single-stepping SVC.
2
3This runs as a sourced script (via -x, via run-test.py)."""
4from __future__ import print_function
5import gdb
4d48c1bc 6from test_gdbstub import main, report
be4a4cb4
IL
7
8
9def run_test():
10 """Run through the tests one by one"""
11 report("lghi\t" in gdb.execute("x/i $pc", False, True), "insn #1")
12 gdb.execute("si")
13 report("larl\t" in gdb.execute("x/i $pc", False, True), "insn #2")
14 gdb.execute("si")
cb2d7e63 15 report("lgrl\t" in gdb.execute("x/i $pc", False, True), "insn #3")
be4a4cb4
IL
16 gdb.execute("si")
17 report("svc\t" in gdb.execute("x/i $pc", False, True), "insn #4")
18 gdb.execute("si")
19 report("xgr\t" in gdb.execute("x/i $pc", False, True), "insn #5")
20 gdb.execute("si")
21 report("svc\t" in gdb.execute("x/i $pc", False, True), "insn #6")
22 gdb.execute("si")
23
24
4d48c1bc 25main(run_test)