diff options
Diffstat (limited to 'sim/common/sim-module.c')
-rw-r--r-- | sim/common/sim-module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/sim-module.c b/sim/common/sim-module.c index bb1dca4..c3a92ce 100644 --- a/sim/common/sim-module.c +++ b/sim/common/sim-module.c @@ -81,7 +81,7 @@ sim_pre_argv_init (SIM_DESC sd, const char *myname) int i; for (i = 0; i < MAX_NR_PROCESSORS; ++i) { - const char *name; + char *name; asprintf (&name, "cpu%d", i); CPU_NAME (STATE_CPU (sd, i)) = name; } |