mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
tcg: Merge memop and mmu_idx parameters to qemu_ld/st
At the tcg opcode level, not at the tcg-op.h generator level. This requires minor changes through all of the tcg backends, but none of the cpu translators. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
1eeace9c23
commit
59227d5d45
15 changed files with 140 additions and 71 deletions
16
tcg/tcg.c
16
tcg/tcg.c
|
@ -1071,12 +1071,18 @@ void tcg_dump_ops(TCGContext *s)
|
|||
case INDEX_op_qemu_st_i32:
|
||||
case INDEX_op_qemu_ld_i64:
|
||||
case INDEX_op_qemu_st_i64:
|
||||
if (args[k] < ARRAY_SIZE(ldst_name) && ldst_name[args[k]]) {
|
||||
qemu_log(",%s", ldst_name[args[k++]]);
|
||||
} else {
|
||||
qemu_log(",$0x%" TCG_PRIlx, args[k++]);
|
||||
{
|
||||
TCGMemOpIdx oi = args[k++];
|
||||
TCGMemOp op = get_memop(oi);
|
||||
unsigned ix = get_mmuidx(oi);
|
||||
|
||||
if (op < ARRAY_SIZE(ldst_name) && ldst_name[op]) {
|
||||
qemu_log(",%s,%u", ldst_name[op], ix);
|
||||
} else {
|
||||
qemu_log(",$0x%x,%u", op, ix);
|
||||
}
|
||||
i = 1;
|
||||
}
|
||||
i = 1;
|
||||
break;
|
||||
default:
|
||||
i = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue