tests/tcg/s390x: Add PSW modification tests
commita1465c8b5b622c82c4c01107c2610abf7d27cbee
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 15 Mar 2023 02:04:08 +0000 (15 03:04 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 20 Mar 2023 08:32:50 +0000 (20 09:32 +0100)
treeef7f80b596b883cbae688f0976c08c14f3a432e4
parent199c42a6a16ba32b5684e679df949cf29024b0cf
tests/tcg/s390x: Add PSW modification tests

Add several small tests that check the PSW modification instructions:

* lpsw.S checks whether LPSW works correctly in the "happy" case.

* lpswe-early.S checks whether early exceptions are recognized and
  whether the correct ILC and old PSW are stored when they happen.

* ssm-early.S, stosm-early.S and exrl-ssm-early.S check the special
  handling of SSM and STOSM with respect to early exceptions.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20230315020408.384766-4-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/tcg/s390x/Makefile.softmmu-target
tests/tcg/s390x/exrl-ssm-early.S [new file with mode: 0644]
tests/tcg/s390x/lpsw.S [new file with mode: 0644]
tests/tcg/s390x/lpswe-early.S [new file with mode: 0644]
tests/tcg/s390x/ssm-early.S [new file with mode: 0644]
tests/tcg/s390x/stosm-early.S [new file with mode: 0644]