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.
This commit is contained in:
Mike Frysinger 2021-05-23 23:27:40 -04:00
parent d699be882b
commit d16ce6e4d5
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2021-05-23 Mike Frysinger <vapier@gentoo.org>
* sim-if.c (sim_open): Delete "x" after PRI macros.
2021-05-23 Mike Frysinger <vapier@gentoo.org>
* sim-if.c: Include unistd.h.

View File

@ -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. */