[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 39/53] tcg/s390x: Use ALGFR in constructing softmmu host address
|
From: |
Richard Henderson |
|
Subject: |
[PULL 39/53] tcg/s390x: Use ALGFR in constructing softmmu host address |
|
Date: |
Thu, 11 May 2023 09:04:36 +0100 |
Rather than zero-extend the guest address into a register,
use an add instruction which zero-extends the second input.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/s390x/tcg-target.c.inc | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc
index dfcf4d9e34..dd13326670 100644
--- a/tcg/s390x/tcg-target.c.inc
+++ b/tcg/s390x/tcg-target.c.inc
@@ -149,6 +149,7 @@ typedef enum S390Opcode {
RRE_ALGR = 0xb90a,
RRE_ALCR = 0xb998,
RRE_ALCGR = 0xb988,
+ RRE_ALGFR = 0xb91a,
RRE_CGR = 0xb920,
RRE_CLGR = 0xb921,
RRE_DLGR = 0xb987,
@@ -1853,10 +1854,11 @@ static TCGLabelQemuLdst *prepare_host_addr(TCGContext
*s, HostAddress *h,
tcg_out_insn(s, RXY, LG, h->index, TCG_REG_R2, TCG_REG_NONE,
offsetof(CPUTLBEntry, addend));
- h->base = addr_reg;
if (TARGET_LONG_BITS == 32) {
- tcg_out_ext32u(s, TCG_REG_R3, addr_reg);
- h->base = TCG_REG_R3;
+ tcg_out_insn(s, RRE, ALGFR, h->index, addr_reg);
+ h->base = TCG_REG_NONE;
+ } else {
+ h->base = addr_reg;
}
h->disp = 0;
#else
--
2.34.1
- [PULL 31/53] tcg/mips: Remove MO_BSWAP handling, (continued)
- [PULL 31/53] tcg/mips: Remove MO_BSWAP handling, Richard Henderson, 2023/05/11
- [PULL 34/53] tcg/ppc: Reorg tcg_out_tlb_read, Richard Henderson, 2023/05/11
- [PULL 15/53] tcg/loongarch64: Introduce prepare_host_addr, Richard Henderson, 2023/05/11
- [PULL 21/53] tcg/i386: Convert tcg_out_qemu_ld_slow_path, Richard Henderson, 2023/05/11
- [PULL 22/53] tcg/i386: Convert tcg_out_qemu_st_slow_path, Richard Henderson, 2023/05/11
- [PULL 33/53] tcg/mips: Simplify constraints on qemu_ld/st, Richard Henderson, 2023/05/11
- [PULL 36/53] tcg/ppc: Remove unused constraints A, B, C, D, Richard Henderson, 2023/05/11
- [PULL 16/53] tcg/mips: Introduce prepare_host_addr, Richard Henderson, 2023/05/11
- [PULL 38/53] tcg/riscv: Simplify constraints on qemu_ld/st, Richard Henderson, 2023/05/11
- [PULL 23/53] tcg/aarch64: Convert tcg_out_qemu_{ld,st}_slow_path, Richard Henderson, 2023/05/11
- [PULL 39/53] tcg/s390x: Use ALGFR in constructing softmmu host address,
Richard Henderson <=
- [PULL 20/53] tcg: Add routines for calling slow-path helpers, Richard Henderson, 2023/05/11
- [PULL 19/53] tcg/s390x: Introduce prepare_host_addr, Richard Henderson, 2023/05/11
- [PULL 28/53] tcg/riscv: Convert tcg_out_qemu_{ld,st}_slow_path, Richard Henderson, 2023/05/11
- [PULL 27/53] tcg/ppc: Convert tcg_out_qemu_{ld,st}_slow_path, Richard Henderson, 2023/05/11
- [PULL 30/53] tcg/loongarch64: Simplify constraints on qemu_ld/st, Richard Henderson, 2023/05/11
- [PULL 29/53] tcg/s390x: Convert tcg_out_qemu_{ld,st}_slow_path, Richard Henderson, 2023/05/11
- [PULL 24/53] tcg/arm: Convert tcg_out_qemu_{ld,st}_slow_path, Richard Henderson, 2023/05/11
- [PULL 03/53] disas: Fix tabs and braces in disas.c, Richard Henderson, 2023/05/11
- [PULL 35/53] tcg/ppc: Adjust constraints on qemu_ld/st, Richard Henderson, 2023/05/11
- [PULL 37/53] tcg/ppc: Remove unused constraint J, Richard Henderson, 2023/05/11