mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
accel/tcg: Move gen_intermediate_code to TCGCPUOps.translate_core
Convert all targets simultaneously, as the gen_intermediate_code function disappears from the target. While there are possible workarounds, they're larger than simply performing the conversion. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
59abfb444e
commit
e4a8e093dc
62 changed files with 121 additions and 62 deletions
|
@ -996,6 +996,7 @@ static const struct SysemuCPUOps sparc_sysemu_ops = {
|
|||
|
||||
static const TCGCPUOps sparc_tcg_ops = {
|
||||
.initialize = sparc_tcg_init,
|
||||
.translate_code = sparc_translate_code,
|
||||
.synchronize_from_tb = sparc_cpu_synchronize_from_tb,
|
||||
.restore_state_to_opc = sparc_restore_state_to_opc,
|
||||
|
||||
|
|
|
@ -609,6 +609,8 @@ int sparc_cpu_memory_rw_debug(CPUState *cpu, vaddr addr,
|
|||
|
||||
/* translate.c */
|
||||
void sparc_tcg_init(void);
|
||||
void sparc_translate_code(CPUState *cs, TranslationBlock *tb,
|
||||
int *max_insns, vaddr pc, void *host_pc);
|
||||
|
||||
/* fop_helper.c */
|
||||
target_ulong cpu_get_fsr(CPUSPARCState *);
|
||||
|
|
|
@ -5819,8 +5819,8 @@ static const TranslatorOps sparc_tr_ops = {
|
|||
.tb_stop = sparc_tr_tb_stop,
|
||||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
vaddr pc, void *host_pc)
|
||||
void sparc_translate_code(CPUState *cs, TranslationBlock *tb,
|
||||
int *max_insns, vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc = {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue