]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/common/sim-config.c
Update years in copyright notice for the GDB files.
[thirdparty/binutils-gdb.git] / sim / common / sim-config.c
index 64683174cd54c2a2a698807bca6f06a3821bfa75..83de0cb927dacd520006d7a41871ef877e14148b 100644 (file)
@@ -1,6 +1,6 @@
 /* The common simulator framework for GDB, the GNU Debugger.
 
-   Copyright 2002, 2007 Free Software Foundation, Inc.
+   Copyright 2002-2013 Free Software Foundation, Inc.
 
    Contributed by Andrew Cagney and Red Hat.
 
@@ -151,7 +151,7 @@ sim_config (SIM_DESC sd)
          && !bfd_big_endian (STATE_PROG_BFD (sd))))
     prefered_target_byte_order = 0;
   else
-    prefered_target_byte_order = (bfd_little_endian(STATE_PROG_BFD (sd))
+    prefered_target_byte_order = (bfd_little_endian (STATE_PROG_BFD (sd))
                                  ? LITTLE_ENDIAN
                                  : BIG_ENDIAN);
 
@@ -224,8 +224,8 @@ sim_config (SIM_DESC sd)
                      config_stdio_to_a (current_stdio));
       return SIM_RC_FAIL;
     }
-  
-  
+
+
   /* check the value of MSB */
   if (WITH_TARGET_WORD_MSB != 0
       && WITH_TARGET_WORD_MSB != (WITH_TARGET_WORD_BITSIZE - 1))
@@ -234,35 +234,35 @@ sim_config (SIM_DESC sd)
                      WITH_TARGET_WORD_BITSIZE, WITH_TARGET_WORD_MSB);
       return SIM_RC_FAIL;
     }
-  
-  
+
+
   /* set the environment */
 #if (WITH_TREE_PROPERTIES)
   if (STATE_ENVIRONMENT (sd) == ALL_ENVIRONMENT)
     {
       const char *env =
-       tree_find_string_property(root, "/openprom/options/env");
-      STATE_ENVIRONMENT (sd) = ((strcmp(env, "user") == 0
-                                || strcmp(env, "uea") == 0)
+       tree_find_string_property (root, "/openprom/options/env");
+      STATE_ENVIRONMENT (sd) = ((strcmp (env, "user") == 0
+                                || strcmp (env, "uea") == 0)
                                ? USER_ENVIRONMENT
-                               : (strcmp(env, "virtual") == 0
-                                  || strcmp(env, "vea") == 0)
+                               : (strcmp (env, "virtual") == 0
+                                  || strcmp (env, "vea") == 0)
                                ? VIRTUAL_ENVIRONMENT
-                               : (strcmp(env, "operating") == 0
-                                  || strcmp(env, "oea") == 0)
+                               : (strcmp (env, "operating") == 0
+                                  || strcmp (env, "oea") == 0)
                                ? OPERATING_ENVIRONMENT
                                : ALL_ENVIRONMENT);
     }
 #endif
   if (STATE_ENVIRONMENT (sd) == ALL_ENVIRONMENT)
     STATE_ENVIRONMENT (sd) = DEFAULT_ENVIRONMENT;
-  
-  
+
+
   /* set the alignment */
 #if (WITH_TREE_PROPERTIES)
   if (current_alignment == 0)
     current_alignment =
-      (tree_find_boolean_property(root, "/openprom/options/strict-alignment?")
+      (tree_find_boolean_property (root, "/openprom/options/strict-alignment?")
        ? STRICT_ALIGNMENT
        : NONSTRICT_ALIGNMENT);
 #endif
@@ -270,7 +270,7 @@ sim_config (SIM_DESC sd)
     current_alignment = WITH_ALIGNMENT;
   if (current_alignment == 0)
     current_alignment = WITH_DEFAULT_ALIGNMENT;
-  
+
   /* verify the alignment */
   if (CURRENT_ALIGNMENT == 0)
     {
@@ -284,13 +284,13 @@ sim_config (SIM_DESC sd)
                      config_alignment_to_a (current_alignment));
       return SIM_RC_FAIL;
     }
-  
+
 #if defined (WITH_FLOATING_POINT)
-  
+
   /* set the floating point */
   if (current_floating_point == 0)
     current_floating_point = WITH_FLOATING_POINT;
-  
+
   /* verify the floating point */
   if (CURRENT_FLOATING_POINT == 0)
     {
@@ -304,7 +304,7 @@ sim_config (SIM_DESC sd)
                      config_alignment_to_a (current_floating_point));
       return SIM_RC_FAIL;
     }
-  
+
 #endif
   return SIM_RC_OK;
 }
@@ -374,9 +374,9 @@ print_sim_config (SIM_DESC sd)
 #if defined (WITH_RESERVED_BITS)
   sim_io_printf (sd, "WITH_RESERVED_BITS = %d\n", WITH_RESERVED_BITS);
 #endif
-                
+
 #if defined (WITH_PROFILE)
   sim_io_printf (sd, "WITH_PROFILE = %d\n", WITH_PROFILE);
 #endif
-                
+
 }