diff options
author | Michael Meissner <gnu@the-meissners.org> | 1996-03-26 21:20:54 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1996-03-26 21:20:54 +0000 |
commit | 7a543ca48e6206507831c2a88290b29db9ea4fc0 (patch) | |
tree | bb2bb6ee94fbbcc6684076a9ded78825b57308ed /sim/ppc/psim.c | |
parent | 7919b9ec416c33f5a6997ce0c73e1f5d2208ac19 (diff) | |
download | gdb-7a543ca48e6206507831c2a88290b29db9ea4fc0.zip gdb-7a543ca48e6206507831c2a88290b29db9ea4fc0.tar.gz gdb-7a543ca48e6206507831c2a88290b29db9ea4fc0.tar.bz2 |
Fix typo that clobbered the stack and rewrite 2/26 change
Diffstat (limited to 'sim/ppc/psim.c')
-rw-r--r-- | sim/ppc/psim.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c index 9b80a6a..4be73d9 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 <model> option for -m\n", &argp, argv); - device_add_string_property(root, "/openprom/options/model", param); + device_tree_add_parsed(root, "/openprom/options/model \"%s", param); break; case 'o': param = find_arg("Missing <device> option for -o\n", &argp, argv); @@ -751,7 +751,7 @@ psim_read_register(psim *system, transfer_mode mode) { register_descriptions description; - char cooked_buf[sizeof(natural_word)]; + char cooked_buf[sizeof(unsigned_8)]; cpu *processor; /* find our processor */ @@ -842,7 +842,7 @@ psim_write_register(psim *system, { cpu *processor; register_descriptions description; - char cooked_buf[sizeof(natural_word)]; + char cooked_buf[sizeof(unsigned_8)]; /* find our processor */ if (which_cpu == MAX_NR_PROCESSORS) |