[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 18/29] target/s390x: Convert to tcg_ops restore_state_to_opc
From: |
Richard Henderson |
Subject: |
[PATCH 18/29] target/s390x: Convert to tcg_ops restore_state_to_opc |
Date: |
Mon, 24 Oct 2022 23:24:48 +1000 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/s390x/s390x-internal.h | 4 +++-
target/s390x/cpu.c | 1 +
target/s390x/tcg/translate.c | 7 +++++--
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/target/s390x/s390x-internal.h b/target/s390x/s390x-internal.h
index b5ae0ae364..5d4361d35b 100644
--- a/target/s390x/s390x-internal.h
+++ b/target/s390x/s390x-internal.h
@@ -398,7 +398,9 @@ void handle_diag_308(CPUS390XState *env, uint64_t r1,
uint64_t r3,
/* translate.c */
void s390x_translate_init(void);
-
+void s390x_restore_state_to_opc(CPUState *cs,
+ const TranslationBlock *tb,
+ const uint64_t *data);
/* sigp.c */
int handle_sigp(CPUS390XState *env, uint8_t order, uint64_t r1, uint64_t r3);
diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
index df00040e95..96562c516d 100644
--- a/target/s390x/cpu.c
+++ b/target/s390x/cpu.c
@@ -272,6 +272,7 @@ static void s390_cpu_reset_full(DeviceState *dev)
static const struct TCGCPUOps s390_tcg_ops = {
.initialize = s390x_translate_init,
+ .restore_state_to_opc = s390x_restore_state_to_opc,
#ifdef CONFIG_USER_ONLY
.record_sigsegv = s390_cpu_record_sigsegv,
diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c
index 1d2dddab1c..5798928473 100644
--- a/target/s390x/tcg/translate.c
+++ b/target/s390x/tcg/translate.c
@@ -6691,9 +6691,12 @@ void gen_intermediate_code(CPUState *cs,
TranslationBlock *tb, int max_insns,
translator_loop(cs, tb, max_insns, pc, host_pc, &s390x_tr_ops, &dc.base);
}
-void restore_state_to_opc(CPUS390XState *env, TranslationBlock *tb,
- target_ulong *data)
+void s390x_restore_state_to_opc(CPUState *cs,
+ const TranslationBlock *tb,
+ const uint64_t *data)
{
+ S390CPU *cpu = S390_CPU(cs);
+ CPUS390XState *env = &cpu->env;
int cc_op = data[1];
env->psw.addr = data[0];
--
2.34.1
- [PATCH 12/29] target/mips: Convert to tcg_ops restore_state_to_opc, (continued)
- [PATCH 12/29] target/mips: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/24
- [PATCH 11/29] target/microblaze: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/24
- [PATCH 16/29] target/riscv: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/24
- [PATCH 13/29] target/nios2: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/24
- [PATCH 14/29] target/openrisc: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/24
- [PATCH 18/29] target/s390x: Convert to tcg_ops restore_state_to_opc,
Richard Henderson <=
- [PATCH 17/29] target/rx: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/24
- [PATCH 15/29] target/ppc: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/24
- [PATCH 22/29] target/xtensa: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/24
- [PATCH 21/29] target/tricore: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/24
- [PATCH 23/29] accel/tcg: Remove restore_state_to_opc function, Richard Henderson, 2022/10/24