sim: cgen: tweak trace format

Fixes build warnings when the address size isn't an integer.
This commit is contained in:
Mike Frysinger 2021-05-01 22:29:50 -04:00
parent 1227922933
commit 532497fe6f
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2021-05-08 Mike Frysinger <vapier@gentoo.org>
* cgen-trace.c (sim_cgen_disassemble_insn): Change %x to PRIxTA.
2021-05-08 Mike Frysinger <vapier@gentoo.org>
* cgen-types.h (mode_names): Rename to ...

View File

@ -384,7 +384,7 @@ sim_cgen_disassemble_insn (SIM_CPU *cpu, const CGEN_INSN *insn,
if (length != insn_length)
{
sim_io_error (sd, "unable to read address %x", pc);
sim_io_error (sd, "unable to read address %" PRIxTA, pc);
}
/* If the entire insn will fit into an integer, then do it. Otherwise, just