mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
tcg: Allow extra data to be attached to insn_start
With an eye toward having this data replace the gen_opc_* arrays that each target collects in order to enable restore_state_from_tb. Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
b933066ae0
commit
9aef40ed1f
4 changed files with 60 additions and 17 deletions
13
tcg/tcg.c
13
tcg/tcg.c
|
@ -991,16 +991,17 @@ void tcg_dump_ops(TCGContext *s)
|
|||
args = &s->gen_opparam_buf[op->args];
|
||||
|
||||
if (c == INDEX_op_insn_start) {
|
||||
uint64_t pc;
|
||||
qemu_log("%s ----", oi != s->gen_first_op_idx ? "\n" : "");
|
||||
|
||||
for (i = 0; i < TARGET_INSN_START_WORDS; ++i) {
|
||||
target_ulong a;
|
||||
#if TARGET_LONG_BITS > TCG_TARGET_REG_BITS
|
||||
pc = ((uint64_t)args[1] << 32) | args[0];
|
||||
a = ((target_ulong)args[i * 2 + 1] << 32) | args[i * 2];
|
||||
#else
|
||||
pc = args[0];
|
||||
a = args[i];
|
||||
#endif
|
||||
if (oi != s->gen_first_op_idx) {
|
||||
qemu_log("\n");
|
||||
qemu_log(" " TARGET_FMT_lx, a);
|
||||
}
|
||||
qemu_log(" ---- 0x%" PRIx64, pc);
|
||||
} else if (c == INDEX_op_call) {
|
||||
/* variable number of arguments */
|
||||
nb_oargs = op->callo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue