aboutsummaryrefslogtreecommitdiff
path: root/sim/frv/sim-if.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/frv/sim-if.c')
-rw-r--r--sim/frv/sim-if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/frv/sim-if.c b/sim/frv/sim-if.c
index 758e17a..3dd76ad 100644
--- a/sim/frv/sim-if.c
+++ b/sim/frv/sim-if.c
@@ -86,7 +86,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, bfd *abfd,
/* Allocate core managed memory if none specified by user.
Use address 4 here in case the user wanted address 0 unmapped. */
if (sim_core_read_buffer (sd, NULL, read_map, &c, 4, 1) == 0)
- sim_do_commandf (sd, "memory region 0,0x%lx", FRV_DEFAULT_MEM_SIZE);
+ sim_do_commandf (sd, "memory region 0,0x%x", FRV_DEFAULT_MEM_SIZE);
/* check for/establish the reference program image */
if (sim_analyze_program (sd,