[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 61/65] target/hppa: Return zero for r0 from load_gpr
|
From: |
Richard Henderson |
|
Subject: |
[PATCH v2 61/65] target/hppa: Return zero for r0 from load_gpr |
|
Date: |
Fri, 20 Oct 2023 13:43:27 -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 9b60924057..ce2aff8c4e 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 v2 48/65] target/hppa: Remove most of the TARGET_REGISTER_BITS redirections, (continued)
- [PATCH v2 48/65] target/hppa: Remove most of the TARGET_REGISTER_BITS redirections, Richard Henderson, 2023/10/20
- [PATCH v2 52/65] target/hppa: Implement HADD, Richard Henderson, 2023/10/20
- [PATCH v2 54/65] target/hppa: Implement HAVG, Richard Henderson, 2023/10/20
- [PATCH v2 55/65] target/hppa: Implement HSHL, HSHR, Richard Henderson, 2023/10/20
- [PATCH v2 56/65] target/hppa: Implement HSHLADD, HSHRADD, Richard Henderson, 2023/10/20
- [PATCH v2 50/65] target/hppa: Use tcg_temp_new_i64 not tcg_temp_new, Richard Henderson, 2023/10/20
- [PATCH v2 57/65] target/hppa: Implement MIXH, MIXW, Richard Henderson, 2023/10/20
- [PATCH v2 58/65] target/hppa: Implement PERMH, Richard Henderson, 2023/10/20
- [PATCH v2 60/65] target/hppa: Precompute zero into DisasContext, Richard Henderson, 2023/10/20
- [PATCH v2 61/65] target/hppa: Return zero for r0 from load_gpr,
Richard Henderson <=
- [PATCH v2 59/65] target/hppa: Fix interruption based on default PSW, Richard Henderson, 2023/10/20
- [PATCH v2 62/65] target/hppa: Simplify trans_dep*_imm, Richard Henderson, 2023/10/20
- [PATCH v2 65/65] linux-user/hppa: Drop EXCP_DUMP from handled exceptions, Richard Henderson, 2023/10/20
- [PATCH v2 64/65] hw/hppa: Translate phys addresses for the cpu, Richard Henderson, 2023/10/20
- [PATCH v2 63/65] include/hw/elf: Remove truncating signed casts, Richard Henderson, 2023/10/20