target/hppa: Allow read-access to PSW with rsm 0,reg instruction
authorHelge Deller <deller@gmx.de>
Tue, 6 Feb 2024 23:49:28 +0000 (00:49 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 11 Feb 2024 12:20:23 +0000 (13:20 +0100)
commit7b2d70a175981917acd9383660b977349963344b
treefe1958612f1c4c99426106001ac90bd238ac644f
parent32d26ea407cadf6efbb46c972caf8594a45c4c81
target/hppa: Allow read-access to PSW with rsm 0,reg instruction

HP-UX 11 and HP ODE tools use the "rsm 0,%reg" instruction in not priviledged
code paths to get the current PSW flags. The constant 0 means that no bits of
the PSW shall be reset, so this is effectively a read-only access to the PSW.
Allow this read-only access even for not privileged code.

Signed-off-by: Helge Deller <deller@gmx.de>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/translate.c