[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 60/61] target/hppa: Return zero for r0 from load_gpr
|
From: |
Richard Henderson |
|
Subject: |
[PATCH 60/61] target/hppa: Return zero for r0 from load_gpr |
|
Date: |
Wed, 18 Oct 2023 14:51:34 -0700 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/hppa/translate.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/target/hppa/translate.c b/target/hppa/translate.c
index 9a9876c529..a9e0e1706f 100644
--- a/target/hppa/translate.c
+++ b/target/hppa/translate.c
@@ -307,9 +307,7 @@ static void cond_free(DisasCond *cond)
static TCGv_i64 load_gpr(DisasContext *ctx, unsigned reg)
{
if (reg == 0) {
- TCGv_i64 t = tcg_temp_new_i64();
- tcg_gen_movi_i64(t, 0);
- return t;
+ return ctx->zero;
} else {
return cpu_gr[reg];
}
--
2.34.1
- [PATCH 49/61] target/hppa: Use tcg_temp_new_i64 not tcg_temp_new, (continued)
- [PATCH 49/61] target/hppa: Use tcg_temp_new_i64 not tcg_temp_new, Richard Henderson, 2023/10/18
- [PATCH 51/61] target/hppa: Implement HADD, Richard Henderson, 2023/10/18
- [PATCH 53/61] target/hppa: Implement HAVG, Richard Henderson, 2023/10/18
- [PATCH 54/61] target/hppa: Implement HSHL, HSHR, Richard Henderson, 2023/10/18
- [PATCH 56/61] target/hppa: Implement MIXH, MIXW, Richard Henderson, 2023/10/18
- [PATCH 55/61] target/hppa: Implement HSHLADD, HSHRADD, Richard Henderson, 2023/10/18
- [PATCH 58/61] target/hppa: Fix interruption based on default PSW, Richard Henderson, 2023/10/18
- [PATCH 59/61] target/hppa: Precompute zero into DisasContext, Richard Henderson, 2023/10/18
- [PATCH 57/61] target/hppa: Implement PERMH, Richard Henderson, 2023/10/18
- [PATCH 61/61] target/hppa: Simplify trans_dep*_imm, Richard Henderson, 2023/10/18
- [PATCH 60/61] target/hppa: Return zero for r0 from load_gpr,
Richard Henderson <=