mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
tcg: Widen gen_insn_data to uint64_t
We already pass uint64_t to restore_state_to_opc; this changes all of the other uses from insn_start through the encoding to decoding. Reviewed-by: Anton Johansson <anjo@rev.ng> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a1429ca26e
commit
c9ad8d27ca
5 changed files with 45 additions and 72 deletions
18
tcg/tcg.c
18
tcg/tcg.c
|
@ -2384,13 +2384,8 @@ static void tcg_dump_ops(TCGContext *s, FILE *f, bool have_prefs)
|
|||
col += ne_fprintf(f, "\n ----");
|
||||
|
||||
for (i = 0; i < TARGET_INSN_START_WORDS; ++i) {
|
||||
target_ulong a;
|
||||
#if TARGET_LONG_BITS > TCG_TARGET_REG_BITS
|
||||
a = deposit64(op->args[i * 2], 32, 32, op->args[i * 2 + 1]);
|
||||
#else
|
||||
a = op->args[i];
|
||||
#endif
|
||||
col += ne_fprintf(f, " " TARGET_FMT_lx, a);
|
||||
col += ne_fprintf(f, " %016" PRIx64,
|
||||
tcg_get_insn_start_param(op, i));
|
||||
}
|
||||
} else if (c == INDEX_op_call) {
|
||||
const TCGHelperInfo *info = tcg_call_info(op);
|
||||
|
@ -6081,13 +6076,8 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb, target_ulong pc_start)
|
|||
}
|
||||
num_insns++;
|
||||
for (i = 0; i < TARGET_INSN_START_WORDS; ++i) {
|
||||
target_ulong a;
|
||||
#if TARGET_LONG_BITS > TCG_TARGET_REG_BITS
|
||||
a = deposit64(op->args[i * 2], 32, 32, op->args[i * 2 + 1]);
|
||||
#else
|
||||
a = op->args[i];
|
||||
#endif
|
||||
s->gen_insn_data[num_insns][i] = a;
|
||||
s->gen_insn_data[num_insns][i] =
|
||||
tcg_get_insn_start_param(op, i);
|
||||
}
|
||||
break;
|
||||
case INDEX_op_discard:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue