mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
sim: cgen: tweak trace format
Fixes build warnings when the address size isn't an integer.
This commit is contained in:
parent
1227922933
commit
532497fe6f
@ -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>
|
2021-05-08 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* cgen-types.h (mode_names): Rename to ...
|
* cgen-types.h (mode_names): Rename to ...
|
||||||
|
@ -384,7 +384,7 @@ sim_cgen_disassemble_insn (SIM_CPU *cpu, const CGEN_INSN *insn,
|
|||||||
|
|
||||||
if (length != insn_length)
|
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
|
/* If the entire insn will fit into an integer, then do it. Otherwise, just
|
||||||
|
Loading…
Reference in New Issue
Block a user