aboutsummaryrefslogtreecommitdiff
path: root/sim/cris/sim-if.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-23 23:27:40 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-23 23:43:37 -0400
commitd16ce6e4d581bcd25c7d9a402c19824c59f04276 (patch)
tree71cd854ed4ef02ac742c86f10a940b8ff8703e3d /sim/cris/sim-if.c
parentd699be882b42f36677836c320edbf7db24021a30 (diff)
downloadgdb-d16ce6e4d581bcd25c7d9a402c19824c59f04276.zip
gdb-d16ce6e4d581bcd25c7d9a402c19824c59f04276.tar.gz
gdb-d16ce6e4d581bcd25c7d9a402c19824c59f04276.tar.bz2
sim: cris: fix memory setup typos
The cleanup to use BFD_VMA_FMT also adjusted this line, but used the incorrect format: while BFD_VMA_FMT needs an explicit "x", PRIx32 does not, so the spurious "x" here confused the parser and broke execution.
Diffstat (limited to 'sim/cris/sim-if.c')
-rw-r--r--sim/cris/sim-if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/cris/sim-if.c b/sim/cris/sim-if.c
index cea499d..6613a93 100644
--- a/sim/cris/sim-if.c
+++ b/sim/cris/sim-if.c
@@ -879,7 +879,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
/* Allocate core managed memory if none specified by user. */
if (sim_core_read_buffer (sd, NULL, read_map, &c, startmem, 1) == 0)
- sim_do_commandf (sd, "memory region 0x%" PRIx32 "x,0x%" PRIu32 "x",
+ sim_do_commandf (sd, "memory region 0x%" PRIx32 ",0x%" PRIu32,
startmem, endmem - startmem);
/* Allocate simulator I/O managed memory if none specified by user. */