aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/emul_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/emul_unix.c')
-rw-r--r--sim/ppc/emul_unix.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c
index 1f63435..0fa5d3f 100644
--- a/sim/ppc/emul_unix.c
+++ b/sim/ppc/emul_unix.c
@@ -951,6 +951,7 @@ emul_unix_create(device *root,
int elf_binary;
os_emul_data *data;
device *vm;
+ char *filename;
/* merge any emulation specific entries into the device tree */
@@ -979,8 +980,10 @@ emul_unix_create(device *root,
(unsigned long)(top_of_stack - stack_size));
tree_parse(vm, "./nr-bytes 0x%x", stack_size);
+ filename = tree_quote_property (bfd_get_filename(image));
tree_parse(root, "/openprom/vm/map-binary/file-name %s",
- bfd_get_filename(image));
+ filename);
+ free (filename);
/* finish the init */
tree_parse(root, "/openprom/init/register/pc 0x%lx",