[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 46/85] target/hppa: Decode ADDB double-word
|
From: |
Richard Henderson |
|
Subject: |
[PULL 46/85] target/hppa: Decode ADDB double-word |
|
Date: |
Mon, 6 Nov 2023 19:03:28 -0800 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/hppa/translate.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/target/hppa/translate.c b/target/hppa/translate.c
index 7f767fea64..1b4fa401ba 100644
--- a/target/hppa/translate.c
+++ b/target/hppa/translate.c
@@ -3143,6 +3143,17 @@ static bool do_addb(DisasContext *ctx, unsigned r,
TCGv_reg in1,
DisasCond cond;
bool d = false;
+ /*
+ * For hppa64, the ADDB conditions change with PSW.W,
+ * dropping ZNV, SV, OD in favor of double-word EQ, LT, LE.
+ */
+ if (ctx->tb_flags & PSW_W) {
+ d = c >= 5;
+ if (d) {
+ c &= 3;
+ }
+ }
+
in2 = load_gpr(ctx, r);
dest = tcg_temp_new();
sv = NULL;
--
2.34.1
- [PULL 34/85] target/hppa: Pass d to do_unit_cond, (continued)
- [PULL 34/85] target/hppa: Pass d to do_unit_cond, Richard Henderson, 2023/11/06
- [PULL 39/85] target/hppa: Decode d for unit instructions, Richard Henderson, 2023/11/06
- [PULL 20/85] target/hppa: Implement hppa_cpu_class_by_name, Richard Henderson, 2023/11/06
- [PULL 32/85] target/hppa: Pass d to do_log_cond, Richard Henderson, 2023/11/06
- [PULL 36/85] target/hppa: Drop attempted gdbstub support for hppa64, Richard Henderson, 2023/11/06
- [PULL 40/85] target/hppa: Decode d for cmpclr instructions, Richard Henderson, 2023/11/06
- [PULL 42/85] target/hppa: Decode d for sub instructions, Richard Henderson, 2023/11/06
- [PULL 44/85] target/hppa: Decode d for cmpb instructions, Richard Henderson, 2023/11/06
- [PULL 41/85] target/hppa: Decode d for add instructions, Richard Henderson, 2023/11/06
- [PULL 43/85] target/hppa: Decode d for bb instructions, Richard Henderson, 2023/11/06
- [PULL 46/85] target/hppa: Decode ADDB double-word,
Richard Henderson <=
- [PULL 47/85] target/hppa: Implement LDD, LDCD, LDDA, STD, STDA, Richard Henderson, 2023/11/06
- [PULL 48/85] target/hppa: Implement DEPD, DEPDI, Richard Henderson, 2023/11/06
- [PULL 51/85] target/hppa: Implement CLRBTS, POPBTS, PUSHBTS, PUSHNOM, Richard Henderson, 2023/11/06
- [PULL 50/85] target/hppa: Implement SHRPD, Richard Henderson, 2023/11/06
- [PULL 52/85] target/hppa: Implement STDBY, Richard Henderson, 2023/11/06
- [PULL 53/85] target/hppa: Implement IDTLBT, IITLBT, Richard Henderson, 2023/11/06
- [PULL 54/85] hw/hppa: Use uint32_t instead of target_ureg, Richard Henderson, 2023/11/06
- [PULL 57/85] target/hppa: Remove remaining TARGET_REGISTER_BITS redirections, Richard Henderson, 2023/11/06
- [PULL 55/85] target/hppa: Remove TARGET_REGISTER_BITS, Richard Henderson, 2023/11/06