From 94feae28e35823371cf0a54b3459427e62aceffa Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 21 Feb 1996 18:58:31 +0000 Subject: [PATCH] Fix -m switch --- sim/ppc/ChangeLog | 4 ++++ sim/ppc/psim.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 613eea1304a..c3378792252 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,5 +1,9 @@ Wed Feb 21 10:39:35 1996 Michael Meissner + * psim.c (psim_options): Call device_add_string_property, not + device_tree_add_parsed, since we want to add the model as a + string, and 603/604 look like integers. + * emul_bugapi.c (emul_bugapi_create): Make formats type compatible. diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c index cbdc35eccd8..9b80a6a23ae 100644 --- a/sim/ppc/psim.c +++ b/sim/ppc/psim.c @@ -219,7 +219,7 @@ psim_options(device *root, break; case 'm': param = find_arg("Missing option for -m\n", &argp, argv); - device_tree_add_parsed(root, "/openprom/options/model %s", param); + device_add_string_property(root, "/openprom/options/model", param); break; case 'o': param = find_arg("Missing option for -o\n", &argp, argv); -- 2.30.2