target/hppa: Add diag instructions to set/restore shadow registers
commit3bdf20819e6824b75a498332961abe7fd25ed671
authorHelge Deller <deller@kernel.org>
Tue, 26 Mar 2024 17:39:40 +0000 (26 07:39 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Mar 2024 18:14:56 +0000 (29 08:14 -1000)
treed8709e99a00464b1164f020edc65ba6a0e968e58
parent381931275a9e09fb832bd6be0b41ebd6ce415099
target/hppa: Add diag instructions to set/restore shadow registers

The 32-bit PA-7300LC (PCX-L2) CPU and the 64-bit PA8700 (PCX-W2) CPU
use different diag instructions to save or restore the CPU registers
to/from the shadow registers.

Implement those per-CPU architecture diag instructions to fix those
parts of the HP ODE testcases (L2DIAG and WDIAG, section 1) which test
the shadow registers.

Signed-off-by: Helge Deller <deller@gmx.de>
[rth: Use decodetree to distinguish cases]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Helge Deller <deller@gmx.de>
Tested-by: Helge Deller <deller@gmx.de>
target/hppa/insns.decode
target/hppa/translate.c