aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/psim.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-11-06 15:37:43 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-11-06 15:37:43 +0000
commit4dcb0cdda68278470579f3a9257a5860105e4e87 (patch)
treecb87077cce93e46ef17af599ba656fb3135a00b3 /sim/ppc/psim.c
parent3ce59aa61641a375240522521ee6cae91cf3c041 (diff)
downloadgdb-4dcb0cdda68278470579f3a9257a5860105e4e87.zip
gdb-4dcb0cdda68278470579f3a9257a5860105e4e87.tar.gz
gdb-4dcb0cdda68278470579f3a9257a5860105e4e87.tar.bz2
Small changes from Andrew
Diffstat (limited to 'sim/ppc/psim.c')
-rw-r--r--sim/ppc/psim.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c
index 03b57fe..60acc9b 100644
--- a/sim/ppc/psim.c
+++ b/sim/ppc/psim.c
@@ -121,7 +121,7 @@ create_hardware_device_tree(bfd *image,
MAX_NR_PROCESSORS);
device_tree_add_boolean(root, "/options/little-endian?",
!image->xvec->byteorder_big_p);
- device_tree_add_string(root, "/options/environment-architecture",
+ device_tree_add_string(root, "/options/env",
"operating");
device_tree_add_boolean(root, "/options/strict-alignment?",
(WITH_ALIGNMENT == STRICT_ALIGNMENT
@@ -209,7 +209,7 @@ create_vea_device_tree(bfd *image,
device_tree_add_integer(root, "/options/smp", 1); /* always */
device_tree_add_boolean(root, "/options/little-endian?",
!image->xvec->byteorder_big_p);
- device_tree_add_string(root, "/options/environment-architecture",
+ device_tree_add_string(root, "/options/env",
(WITH_ENVIRONMENT == USER_ENVIRONMENT
? "user" : "virtual"));
device_tree_add_boolean(root, "/options/strict-alignment?",
@@ -303,7 +303,7 @@ create_filed_device_tree(const char *file_name,
}
else {
/* any thing else */
- space = '\0';
+ *space = '\0';
device_tree_add_string(root, device_path, space + 1);
}
}
@@ -410,16 +410,19 @@ psim_create(const char *file_name)
/* fill in the missing OEA/VEA information */
env = device_tree_find_string(system->devices,
- "/options/environment-architecture");
- current_environment = (strcmp(env, "user") == 0
+ "/options/env");
+ current_environment = ((strcmp(env, "user") == 0
+ || strcmp(env, "uea") == 0)
? USER_ENVIRONMENT
- : strcmp(env, "virtual") == 0
+ : (strcmp(env, "virtual") == 0
+ || strcmp(env, "vea") == 0)
? VIRTUAL_ENVIRONMENT
- : strcmp(env, "operating") == 0
+ : (strcmp(env, "operating") == 0
+ || strcmp(env, "oea") == 0)
? OPERATING_ENVIRONMENT
: 0);
if (current_environment == 0)
- error("unreconized /options/environment-architecture\n");
+ error("unreconized /options/env\n");
if (CURRENT_ENVIRONMENT != current_environment)
error("target environment conflict\n");