[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 28/47] target/avr: Convert to tcg_ops restore_state_to_opc
From: |
Richard Henderson |
Subject: |
[PULL 28/47] target/avr: Convert to tcg_ops restore_state_to_opc |
Date: |
Wed, 26 Oct 2022 12:10:57 +1000 |
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/avr/cpu.c | 11 +++++++++++
target/avr/translate.c | 6 ------
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/target/avr/cpu.c b/target/avr/cpu.c
index 0d2861179d..c7295b488d 100644
--- a/target/avr/cpu.c
+++ b/target/avr/cpu.c
@@ -57,6 +57,16 @@ static void avr_cpu_synchronize_from_tb(CPUState *cs,
env->pc_w = tb_pc(tb) / 2; /* internally PC points to words */
}
+static void avr_restore_state_to_opc(CPUState *cs,
+ const TranslationBlock *tb,
+ const uint64_t *data)
+{
+ AVRCPU *cpu = AVR_CPU(cs);
+ CPUAVRState *env = &cpu->env;
+
+ env->pc_w = data[0];
+}
+
static void avr_cpu_reset(DeviceState *ds)
{
CPUState *cs = CPU(ds);
@@ -202,6 +212,7 @@ static const struct SysemuCPUOps avr_sysemu_ops = {
static const struct TCGCPUOps avr_tcg_ops = {
.initialize = avr_cpu_tcg_init,
.synchronize_from_tb = avr_cpu_synchronize_from_tb,
+ .restore_state_to_opc = avr_restore_state_to_opc,
.cpu_exec_interrupt = avr_cpu_exec_interrupt,
.tlb_fill = avr_cpu_tlb_fill,
.do_interrupt = avr_cpu_do_interrupt,
diff --git a/target/avr/translate.c b/target/avr/translate.c
index e65b6008c0..2bed56f135 100644
--- a/target/avr/translate.c
+++ b/target/avr/translate.c
@@ -3055,9 +3055,3 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock
*tb, int max_insns,
DisasContext dc = { };
translator_loop(cs, tb, max_insns, pc, host_pc, &avr_tr_ops, &dc.base);
}
-
-void restore_state_to_opc(CPUAVRState *env, TranslationBlock *tb,
- target_ulong *data)
-{
- env->pc_w = data[0];
-}
--
2.34.1
- [PULL 18/47] accel/tcg: Unify declarations of tb_invalidate_phys_range, (continued)
- [PULL 18/47] accel/tcg: Unify declarations of tb_invalidate_phys_range, Richard Henderson, 2022/10/25
- [PULL 19/47] accel/tcg: Use tb_invalidate_phys_page in page_set_flags, Richard Henderson, 2022/10/25
- [PULL 20/47] accel/tcg: Call tb_invalidate_phys_page for PAGE_RESET, Richard Henderson, 2022/10/25
- [PULL 21/47] accel/tcg: Use page_reset_target_data in page_set_flags, Richard Henderson, 2022/10/25
- [PULL 22/47] accel/tcg: Use tb_invalidate_phys_range in page_set_flags, Richard Henderson, 2022/10/25
- [PULL 23/47] accel/tcg: Move TARGET_PAGE_DATA_SIZE impl to user-exec.c, Richard Henderson, 2022/10/25
- [PULL 24/47] accel/tcg: Simplify page_get/alloc_target_data, Richard Henderson, 2022/10/25
- [PULL 25/47] accel/tcg: Add restore_state_to_opc to TCGCPUOps, Richard Henderson, 2022/10/25
- [PULL 26/47] target/alpha: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 27/47] target/arm: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 28/47] target/avr: Convert to tcg_ops restore_state_to_opc,
Richard Henderson <=
- [PULL 29/47] target/cris: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 30/47] target/hexagon: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 31/47] target/hppa: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 32/47] target/i386: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 33/47] target/loongarch: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [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