]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/frv/interrupts.c
sim: unify -Werror build settings
[thirdparty/binutils-gdb.git] / sim / frv / interrupts.c
index 540ee06e28d6630d45989115d33e46776c3d927b..99b27cffa948cecfee5d1d32e2abb43736e10233 100644 (file)
@@ -1,28 +1,32 @@
 /* frv exception and interrupt support
-   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1999-2021 Free Software Foundation, Inc.
    Contributed by Red Hat.
 
 This file is part of the GNU simulators.
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
+the Free Software Foundation; either version 3 of the License, or
+(at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
-You should have received a copy of the GNU General Public License along
-with this program; if not, write to the Free Software Foundation, Inc.,
-59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+
+/* This must come before any other includes.  */
+#include "defs.h"
 
 #define WANT_CPU frvbf
 #define WANT_CPU_FRVBF
 
 #include "sim-main.h"
+#include "sim-signal.h"
 #include "bfd.h"
+#include <stdlib.h>
 
 /* FR-V Interrupt table.
    Describes the interrupts supported by the FR-V.
@@ -239,6 +243,7 @@ frv_queue_illegal_instruction_interrupt (
   switch (STATE_ARCHITECTURE (sd)->mach)
     {
     case bfd_mach_fr400:
+    case bfd_mach_fr450:
     case bfd_mach_fr550:
       break;
     default:
@@ -299,6 +304,7 @@ frv_queue_non_implemented_instruction_interrupt (
   switch (STATE_ARCHITECTURE (sd)->mach)
     {
     case bfd_mach_fr400:
+    case bfd_mach_fr450:
     case bfd_mach_fr550:
       break;
     default:
@@ -845,8 +851,7 @@ set_exception_status_registers (
          break;
        case FRV_DATA_ACCESS_ERROR:
          reg_index = 15; /* Use ESR15, EPCR15.  */
-         if (STATE_ARCHITECTURE (sd)->mach != bfd_mach_fr400)
-           set_ear = 1;
+         set_ear = 1;
          break;
        case FRV_DATA_ACCESS_EXCEPTION:
          set_daec = 1;