OSDN Git Service

tests/tcg: finesse the registers check for "hidden" regs
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 21 Nov 2023 15:36:06 +0000 (15:36 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 23 Nov 2023 14:10:06 +0000 (14:10 +0000)
commit6ef164188d005d7636f7ed8a1033cc4083498301
tree536cbf19a8021edd059dc032d7aa222b030acd57
parentc2118e9e1ab34edb1b5d1b0b4092cb12271a593d
tests/tcg: finesse the registers check for "hidden" regs

The reason the ppc64 and s390x test where failing was because gdb
hides them although they are still accessible via regnum. We can
re-arrange the test a little bit and include these two arches in our
test.

We also need to be a bit more careful handling remote-registers as the
format isn't easily parsed with pure white space separation. Once we
fold types like "long long" and "long double" into a single word we
can now assert all registers are either listed or elided.

Cc: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: <qemu-s390x@nongnu.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Daniel Henrique Barboza <danielhb413@gmail.com>
Cc: <qemu-ppc@nongnu.org>
Cc: Luis Machado <luis.machado@arm.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231121153606.542101-1-alex.bennee@linaro.org>
tests/tcg/multiarch/gdbstub/registers.py
tests/tcg/ppc64/Makefile.target
tests/tcg/s390x/Makefile.target