[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/9] target/hppa: Drop diag_getshadowregs_pa2 and diag_putshadowre
From: |
deller |
Subject: |
[PULL 5/9] target/hppa: Drop diag_getshadowregs_pa2 and diag_putshadowregs_pa2 |
Date: |
Thu, 30 Jan 2025 14:29:10 +0100 |
From: Helge Deller <deller@gmx.de>
diag_getshadowregs_pa2() and diag_putshadowregs_pa2() were added in
commit 3bdf20819e68 based on some analysis of ODE code, but now they
conflict with the generic mfdiag/mtdiag instructions. I believe the
former analysis was wrong, so remove them again. Note that all diag
instructions are badly documented, so most things are based on reverse
engineering and thus may be wrong.
Signed-off-by: Helge Deller <deller@gmx.de>
Fixes: 3bdf20819e68 ("target/hppa: Add diag instructions to set/restore shadow
registers")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
target/hppa/insns.decode | 2 --
target/hppa/translate.c | 10 ----------
2 files changed, 12 deletions(-)
diff --git a/target/hppa/insns.decode b/target/hppa/insns.decode
index 71074a64c1..527c453443 100644
--- a/target/hppa/insns.decode
+++ b/target/hppa/insns.decode
@@ -646,8 +646,6 @@ xmpyu 001110 ..... ..... 010 .0111 .00 t:5
r1=%ra64 r2=%rb64
diag_putshadowregs_pa1 000101 00 0000 0000 0001 1010 0100 0000
# For 64-bit PA8700 (PCX-W2)
- diag_getshadowregs_pa2 000101 00 0111 1000 0001 1000 0100 0000
- diag_putshadowregs_pa2 000101 00 0111 0000 0001 1000 0100 0000
]
diag_unimp 000101 i:26
}
diff --git a/target/hppa/translate.c b/target/hppa/translate.c
index dc04f9f3c0..30fba5297a 100644
--- a/target/hppa/translate.c
+++ b/target/hppa/translate.c
@@ -4593,21 +4593,11 @@ static bool trans_diag_getshadowregs_pa1(DisasContext
*ctx, arg_empty *a)
return !ctx->is_pa20 && do_getshadowregs(ctx);
}
-static bool trans_diag_getshadowregs_pa2(DisasContext *ctx, arg_empty *a)
-{
- return ctx->is_pa20 && do_getshadowregs(ctx);
-}
-
static bool trans_diag_putshadowregs_pa1(DisasContext *ctx, arg_empty *a)
{
return !ctx->is_pa20 && do_putshadowregs(ctx);
}
-static bool trans_diag_putshadowregs_pa2(DisasContext *ctx, arg_empty *a)
-{
- return ctx->is_pa20 && do_putshadowregs(ctx);
-}
-
static bool trans_diag_unimp(DisasContext *ctx, arg_diag_unimp *a)
{
CHECK_MOST_PRIVILEGED(EXCP_PRIV_OPR);
--
2.47.0
- [PULL 0/9] Hppa system mfdiag for v10 patches, deller, 2025/01/30
- [PULL 1/9] MAINTAINERS: Add myself as HPPA maintainer, deller, 2025/01/30
- [PULL 2/9] hppa: Sync contents of hppa_hardware.h header file with SeaBIOS-hppa, deller, 2025/01/30
- [PULL 3/9] disas/hppa: implement mfdiag/mtdiag disassembly, deller, 2025/01/30
- [PULL 4/9] target/hppa: Add CPU diagnose registers, deller, 2025/01/30
- [PULL 5/9] target/hppa: Drop diag_getshadowregs_pa2 and diag_putshadowregs_pa2,
deller <=
- [PULL 6/9] target/hppa: Add instruction decoding for mfdiag and mtdiag, deller, 2025/01/30
- [PULL 7/9] target/hppa: 64-bit CPUs start with space register hashing enabled, deller, 2025/01/30
- [PULL 8/9] target/hppa: Implement space register hashing for 64-bit HP-UX, deller, 2025/01/30
- [PULL 9/9] target/hppa: Update SeaBIOS-hppa to version 18, deller, 2025/01/30