mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
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:
@ -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>
|
2021-05-23 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* sim-if.c: Include unistd.h.
|
* sim-if.c: Include unistd.h.
|
||||||
|
@ -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. */
|
/* Allocate core managed memory if none specified by user. */
|
||||||
if (sim_core_read_buffer (sd, NULL, read_map, &c, startmem, 1) == 0)
|
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);
|
startmem, endmem - startmem);
|
||||||
|
|
||||||
/* Allocate simulator I/O managed memory if none specified by user. */
|
/* Allocate simulator I/O managed memory if none specified by user. */
|
||||||
|
Reference in New Issue
Block a user