* cris/traps.c (cris_break_13_handler) <case
authorHans-Peter Nilsson <hp@axis.com>
Thu, 24 Mar 2005 01:14:09 +0000 (01:14 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Thu, 24 Mar 2005 01:14:09 +0000 (01:14 +0000)
TARGET_SYS_rt_sigaction>: Rename sa_handler, sa_flags,
sa_restorer, sa_mask_low, sa_mask_high to target_sa_handler etc.

sim/ChangeLog
sim/cris/traps.c

index b79c5a3b32427bf2142347ffb54d3eb96cc2c4ea..6e8eeeec7361511e55fd8c9799fb3551515c385a 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-24  Hans-Peter Nilsson  <hp@axis.com>
+
+       * cris/traps.c (cris_break_13_handler) <case
+       TARGET_SYS_rt_sigaction>: Rename sa_handler, sa_flags,
+       sa_restorer, sa_mask_low, sa_mask_high to target_sa_handler etc.
+
 2005-03-23  Mark Kettenis  <kettenis@gnu.org>
 
        * cris/configure: Regenerate.
index ff39a4fcfc6eea6cc91c78e24b165dc4e710a139..eadb744ff363ec001bf863c7a1921beb31ef955b 100644 (file)
@@ -1790,15 +1790,15 @@ cris_break_13_handler (SIM_CPU *current_cpu, USI callnum, USI arg1,
              }
            if (new_sa != 0)
              {
-               USI sa_handler
+               USI target_sa_handler
                  = sim_core_read_unaligned_4 (current_cpu, pc, 0, new_sa);
-               USI sa_flags
+               USI target_sa_flags
                  = sim_core_read_unaligned_4 (current_cpu, pc, 0, new_sa + 4);
-               USI sa_restorer
+               USI target_sa_restorer
                  = sim_core_read_unaligned_4 (current_cpu, pc, 0, new_sa + 8);
-               USI sa_mask_low
+               USI target_sa_mask_low
                  = sim_core_read_unaligned_4 (current_cpu, pc, 0, new_sa + 12);
-               USI sa_mask_high
+               USI target_sa_mask_high
                  = sim_core_read_unaligned_4 (current_cpu, pc, 0, new_sa + 16);
 
                /* We won't interrupt a syscall so we won't restart it,
@@ -1808,10 +1808,10 @@ cris_break_13_handler (SIM_CPU *current_cpu, USI callnum, USI arg1,
                   TARGET_SA_RESTORER, so don't look at it.  For the
                   time being, we don't nest sighandlers, so we
                   ignore the sa_mask, which simplifies things.  */
-               if ((sa_flags != 0
-                    && sa_flags != TARGET_SA_RESTART
-                    && sa_flags != (TARGET_SA_RESTART|TARGET_SA_SIGINFO))
-                   || sa_handler == 0)
+               if ((target_sa_flags != 0
+                    && target_sa_flags != TARGET_SA_RESTART
+                    && target_sa_flags != (TARGET_SA_RESTART|TARGET_SA_SIGINFO))
+                   || target_sa_handler == 0)
                  {
                    sim_io_eprintf (sd, "Unimplemented rt_sigaction "
                                    "syscall (0x%lx, "
@@ -1820,14 +1820,15 @@ cris_break_13_handler (SIM_CPU *current_cpu, USI callnum, USI arg1,
                                    "0x%lx)\n",
                                    (unsigned long) arg1,
                                    (unsigned long) arg2,
-                                   sa_handler, sa_flags, sa_restorer,
-                                   sa_mask_low, sa_mask_high,
+                                   target_sa_handler, target_sa_flags,
+                                   target_sa_restorer,
+                                   target_sa_mask_low, target_sa_mask_high,
                                    (unsigned long) arg3);
                    sim_engine_halt (sd, current_cpu, NULL, pc, sim_stopped,
                                     SIM_SIGILL);
                  }
 
-               current_cpu->sighandler[signum] = sa_handler;
+               current_cpu->sighandler[signum] = target_sa_handler;
 
                /* Because we may have unblocked signals, one may now be
                   pending, if there are threads, that is.  */