mirror of https://github.com/xemu-project/xemu.git
target: Use vaddr in gen_intermediate_code
Makes gen_intermediate_code() signature target agnostic so the function can be called from accel/tcg/translate-all.c without target specifics. Signed-off-by: Anton Johansson <anjo@rev.ng> Message-Id: <20240119144024.14289-9-anjo@rev.ng> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
61d6a91513
commit
32f0c394bb
|
@ -33,7 +33,7 @@
|
|||
* the target-specific DisasContext, and then invoke translator_loop.
|
||||
*/
|
||||
void gen_intermediate_code(CPUState *cpu, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc);
|
||||
vaddr pc, void *host_pc);
|
||||
|
||||
/**
|
||||
* DisasJumpType:
|
||||
|
|
|
@ -2971,7 +2971,7 @@ static const TranslatorOps alpha_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cpu, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc;
|
||||
translator_loop(cpu, tb, max_insns, pc, host_pc, &alpha_tr_ops, &dc.base);
|
||||
|
|
|
@ -9691,7 +9691,7 @@ static const TranslatorOps thumb_translator_ops = {
|
|||
|
||||
/* generate intermediate code for basic block 'tb'. */
|
||||
void gen_intermediate_code(CPUState *cpu, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc = { };
|
||||
const TranslatorOps *ops = &arm_translator_ops;
|
||||
|
|
|
@ -2805,7 +2805,7 @@ static const TranslatorOps avr_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc = { };
|
||||
translator_loop(cs, tb, max_insns, pc, host_pc, &avr_tr_ops, &dc.base);
|
||||
|
|
|
@ -3172,7 +3172,7 @@ static const TranslatorOps cris_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc;
|
||||
translator_loop(cs, tb, max_insns, pc, host_pc, &cris_tr_ops, &dc.base);
|
||||
|
|
|
@ -1154,7 +1154,7 @@ static const TranslatorOps hexagon_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext ctx;
|
||||
|
||||
|
|
|
@ -4631,7 +4631,7 @@ static const TranslatorOps hppa_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext ctx;
|
||||
translator_loop(cs, tb, max_insns, pc, host_pc, &hppa_tr_ops, &ctx.base);
|
||||
|
|
|
@ -7088,7 +7088,7 @@ static const TranslatorOps i386_tr_ops = {
|
|||
|
||||
/* generate intermediate code for basic block 'tb'. */
|
||||
void gen_intermediate_code(CPUState *cpu, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc;
|
||||
|
||||
|
|
|
@ -343,7 +343,7 @@ static const TranslatorOps loongarch_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext ctx;
|
||||
|
||||
|
|
|
@ -6088,7 +6088,7 @@ static const TranslatorOps m68k_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cpu, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc;
|
||||
translator_loop(cpu, tb, max_insns, pc, host_pc, &m68k_tr_ops, &dc.base);
|
||||
|
|
|
@ -1792,7 +1792,7 @@ static const TranslatorOps mb_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cpu, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc;
|
||||
translator_loop(cpu, tb, max_insns, pc, host_pc, &mb_tr_ops, &dc.base);
|
||||
|
|
|
@ -15554,7 +15554,7 @@ static const TranslatorOps mips_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext ctx;
|
||||
|
||||
|
|
|
@ -1036,7 +1036,7 @@ static const TranslatorOps nios2_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc;
|
||||
translator_loop(cs, tb, max_insns, pc, host_pc, &nios2_tr_ops, &dc.base);
|
||||
|
|
|
@ -1658,7 +1658,7 @@ static const TranslatorOps openrisc_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext ctx;
|
||||
|
||||
|
|
|
@ -7518,7 +7518,7 @@ static const TranslatorOps ppc_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext ctx;
|
||||
|
||||
|
|
|
@ -1287,7 +1287,7 @@ static const TranslatorOps riscv_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext ctx;
|
||||
|
||||
|
|
|
@ -2266,7 +2266,7 @@ static const TranslatorOps rx_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc;
|
||||
|
||||
|
|
|
@ -6547,7 +6547,7 @@ static const TranslatorOps s390x_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc;
|
||||
|
||||
|
|
|
@ -2317,7 +2317,7 @@ static const TranslatorOps sh4_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext ctx;
|
||||
|
||||
|
|
|
@ -5327,7 +5327,7 @@ static const TranslatorOps sparc_tr_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc = {};
|
||||
|
||||
|
|
|
@ -8472,7 +8472,7 @@ static const TranslatorOps tricore_tr_ops = {
|
|||
|
||||
|
||||
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext ctx;
|
||||
translator_loop(cs, tb, max_insns, pc, host_pc,
|
||||
|
|
|
@ -1239,7 +1239,7 @@ static const TranslatorOps xtensa_translator_ops = {
|
|||
};
|
||||
|
||||
void gen_intermediate_code(CPUState *cpu, TranslationBlock *tb, int *max_insns,
|
||||
target_ulong pc, void *host_pc)
|
||||
vaddr pc, void *host_pc)
|
||||
{
|
||||
DisasContext dc = {};
|
||||
translator_loop(cpu, tb, max_insns, pc, host_pc,
|
||||
|
|
Loading…
Reference in New Issue