cpu.c (4a9c04672a875ed00ea807ea4d552c01f6440bc7) cpu.c (5439d7a68ce3449d4091e0b4c084579b9467a683)
1/*
2 * QEMU RX CPU
3 *
4 * Copyright (c) 2019 Yoshinori Sato
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2 or later, as published by the Free Software Foundation.

--- 33 unchanged lines hidden (view full) ---

42static void rx_cpu_synchronize_from_tb(CPUState *cs,
43 const TranslationBlock *tb)
44{
45 RXCPU *cpu = RX_CPU(cs);
46
47 cpu->env.pc = tb_pc(tb);
48}
49
1/*
2 * QEMU RX CPU
3 *
4 * Copyright (c) 2019 Yoshinori Sato
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2 or later, as published by the Free Software Foundation.

--- 33 unchanged lines hidden (view full) ---

42static void rx_cpu_synchronize_from_tb(CPUState *cs,
43 const TranslationBlock *tb)
44{
45 RXCPU *cpu = RX_CPU(cs);
46
47 cpu->env.pc = tb_pc(tb);
48}
49
50static void rx_restore_state_to_opc(CPUState *cs,
51 const TranslationBlock *tb,
52 const uint64_t *data)
53{
54 RXCPU *cpu = RX_CPU(cs);
55
56 cpu->env.pc = data[0];
57}
58
50static bool rx_cpu_has_work(CPUState *cs)
51{
52 return cs->interrupt_request &
53 (CPU_INTERRUPT_HARD | CPU_INTERRUPT_FIR);
54}
55
56static void rx_cpu_reset(DeviceState *dev)
57{

--- 129 unchanged lines hidden (view full) ---

187};
188#endif
189
190#include "hw/core/tcg-cpu-ops.h"
191
192static const struct TCGCPUOps rx_tcg_ops = {
193 .initialize = rx_translate_init,
194 .synchronize_from_tb = rx_cpu_synchronize_from_tb,
59static bool rx_cpu_has_work(CPUState *cs)
60{
61 return cs->interrupt_request &
62 (CPU_INTERRUPT_HARD | CPU_INTERRUPT_FIR);
63}
64
65static void rx_cpu_reset(DeviceState *dev)
66{

--- 129 unchanged lines hidden (view full) ---

196};
197#endif
198
199#include "hw/core/tcg-cpu-ops.h"
200
201static const struct TCGCPUOps rx_tcg_ops = {
202 .initialize = rx_translate_init,
203 .synchronize_from_tb = rx_cpu_synchronize_from_tb,
204 .restore_state_to_opc = rx_restore_state_to_opc,
195 .tlb_fill = rx_cpu_tlb_fill,
196
197#ifndef CONFIG_USER_ONLY
198 .cpu_exec_interrupt = rx_cpu_exec_interrupt,
199 .do_interrupt = rx_cpu_do_interrupt,
200#endif /* !CONFIG_USER_ONLY */
201};
202

--- 51 unchanged lines hidden ---
205 .tlb_fill = rx_cpu_tlb_fill,
206
207#ifndef CONFIG_USER_ONLY
208 .cpu_exec_interrupt = rx_cpu_exec_interrupt,
209 .do_interrupt = rx_cpu_do_interrupt,
210#endif /* !CONFIG_USER_ONLY */
211};
212

--- 51 unchanged lines hidden ---