qemu-s390x
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Odd PSW Address does not trigger a specification exception.


From: Harold Grovesteen
Subject: Odd PSW Address does not trigger a specification exception.
Date: Mon, 30 Jan 2023 11:31:02 -0600
User-agent: Evolution 3.44.4-0ubuntu1

While doing some testing, I encountered the situation where an odd PSW
address is introduced into the active PSW by means of a BC instruction.
The odd address is used by Qemu for successful instruction fetching.

I am using qemu-7.2.0-rc4. I have noticed in this list some patches on
or about 9 Jan 2023 related to displacement addresses and the
introduction of "gen_psw_addr_disp". The version of qemu I am using
does not contain that function, so I can not validate whether it
addresses the odd instruction address I encountered in my testing.

z/Architecture Principles of Operation manual -13 on page 5-13 states:

"A specification exception due to an odd branch address and access
exceptions due to fetching of the instruction at the branch location
are not recognized as part of the branch operation but instead are
recognized as exceptions associated with the execution of the
instruction at the branch location."

The specification exception was not recognized at all. Rather the
instruction coded at the odd address, LGFI, was fetched and executed.

It was not until the X'00', also at an odd address, immediately
following the LGFI was itself fetched for execution that the program
ceased operation with an operation exception program interrupt.

I am hoping that this is sufficient information to determine if this is
a known reaction by Qemu to this condition and whether the new patches
will address this.  If neither is the case, FYI.

If you require details, please contact me here or off list.

Thanks,
Harold Grovesteen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]