forked from Imagelibrary/binutils-gdb
sim: cgen: tweak trace format
Fixes build warnings when the address size isn't an integer.
This commit is contained in:
@@ -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 ...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user