[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 45/47] target/tricore: Convert to tcg_ops restore_state_to_opc
From: |
Richard Henderson |
Subject: |
[PULL 45/47] target/tricore: Convert to tcg_ops restore_state_to_opc |
Date: |
Wed, 26 Oct 2022 12:11:14 +1000 |
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/tricore/cpu.c | 11 +++++++++++
target/tricore/translate.c | 6 ------
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/target/tricore/cpu.c b/target/tricore/cpu.c
index ab7a1e3a6d..2c54a2825f 100644
--- a/target/tricore/cpu.c
+++ b/target/tricore/cpu.c
@@ -58,6 +58,16 @@ static void tricore_cpu_synchronize_from_tb(CPUState *cs,
env->PC = tb_pc(tb);
}
+static void tricore_restore_state_to_opc(CPUState *cs,
+ const TranslationBlock *tb,
+ const uint64_t *data)
+{
+ TriCoreCPU *cpu = TRICORE_CPU(cs);
+ CPUTriCoreState *env = &cpu->env;
+
+ env->PC = data[0];
+}
+
static void tricore_cpu_reset(DeviceState *dev)
{
CPUState *s = CPU(dev);
@@ -161,6 +171,7 @@ static const struct SysemuCPUOps tricore_sysemu_ops = {
static const struct TCGCPUOps tricore_tcg_ops = {
.initialize = tricore_tcg_init,
.synchronize_from_tb = tricore_cpu_synchronize_from_tb,
+ .restore_state_to_opc = tricore_restore_state_to_opc,
.tlb_fill = tricore_cpu_tlb_fill,
};
diff --git a/target/tricore/translate.c b/target/tricore/translate.c
index a0558ead71..c5b7bfbf20 100644
--- a/target/tricore/translate.c
+++ b/target/tricore/translate.c
@@ -8886,12 +8886,6 @@ void gen_intermediate_code(CPUState *cs,
TranslationBlock *tb, int max_insns,
&tricore_tr_ops, &ctx.base);
}
-void
-restore_state_to_opc(CPUTriCoreState *env, TranslationBlock *tb,
- target_ulong *data)
-{
- env->PC = data[0];
-}
/*
*
* Initialization
--
2.34.1
- [PULL 34/47] target/m68k: Convert to tcg_ops restore_state_to_opc, (continued)
- [PULL 34/47] target/m68k: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 35/47] target/microblaze: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 36/47] target/mips: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 37/47] target/nios2: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 38/47] target/openrisc: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 39/47] target/ppc: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 40/47] target/riscv: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 41/47] target/rx: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 42/47] target/s390x: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 43/47] target/sh4: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 45/47] target/tricore: Convert to tcg_ops restore_state_to_opc,
Richard Henderson <=
- [PULL 47/47] accel/tcg: Remove restore_state_to_opc function, Richard Henderson, 2022/10/25
- [PULL 46/47] target/xtensa: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 44/47] target/sparc: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- Re: [PULL 00/47] tcg patch queue, Stefan Hajnoczi, 2022/10/26