aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-config.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-01-31 14:07:23 +0000
committerAndrew Cagney <cagney@redhat.com>1998-01-31 14:07:23 +0000
commit412c4e940ed0380b2a7205327c43175fbf880ec7 (patch)
tree4e3cd3ae42fde405a17db15842ef14e4e459b47f /sim/common/sim-config.c
parentc4db5b04f888efa8b06871eafab17ef5d720a9c7 (diff)
downloadfsf-binutils-gdb-412c4e940ed0380b2a7205327c43175fbf880ec7.zip
fsf-binutils-gdb-412c4e940ed0380b2a7205327c43175fbf880ec7.tar.gz
fsf-binutils-gdb-412c4e940ed0380b2a7205327c43175fbf880ec7.tar.bz2
Add config support for the size of the target address and OF cell.
Diffstat (limited to 'sim/common/sim-config.c')
-rw-r--r--sim/common/sim-config.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/sim/common/sim-config.c b/sim/common/sim-config.c
index b7913e4..278219e 100644
--- a/sim/common/sim-config.c
+++ b/sim/common/sim-config.c
@@ -163,7 +163,7 @@ sim_config (SIM_DESC sd)
/* set the target byte order */
-#if (WITH_DEVICES)
+#if (WITH_TREE_PROPERTIES)
if (current_target_byte_order == 0)
current_target_byte_order
= (tree_find_boolean_property (root, "/options/little-endian?")
@@ -227,7 +227,7 @@ sim_config (SIM_DESC sd)
/* set the environment */
-#if (WITH_DEVICES)
+#if (WITH_TREE_PROPERTIES)
if (current_environment == ALL_ENVIRONMENT)
{
const char *env =
@@ -249,7 +249,7 @@ sim_config (SIM_DESC sd)
/* set the alignment */
-#if defined (WITH_DEVICES)
+#if (WITH_TREE_PROPERTIES)
if (current_alignment == 0)
current_alignment =
(tree_find_boolean_property(root, "/openprom/options/strict-alignment?")
@@ -322,11 +322,17 @@ print_sim_config (SIM_DESC sd)
sim_io_printf (sd, "WITH_STDIO = %s\n",
config_stdio_to_a (WITH_STDIO));
+ sim_io_printf (sd, "WITH_TARGET_WORD_MSB = %d\n",
+ WITH_TARGET_WORD_MSB);
+
sim_io_printf (sd, "WITH_TARGET_WORD_BITSIZE = %d\n",
WITH_TARGET_WORD_BITSIZE);
- sim_io_printf (sd, "WITH_TARGET_WORD_MSB = %d\n",
- WITH_TARGET_WORD_MSB);
+ sim_io_printf (sd, "WITH_TARGET_ADDRESS_BITSIZE = %d\n",
+ WITH_TARGET_ADDRESS_BITSIZE);
+
+ sim_io_printf (sd, "WITH_TARGET_CELL_BITSIZE = %d\n",
+ WITH_TARGET_CELL_BITSIZE);
sim_io_printf (sd, "WITH_ENVIRONMENT = %s\n",
config_environment_to_a (WITH_ENVIRONMENT));