sparc: Move the interrupt types out of isa_traits.hh into interrupts.hh.
authorGabe Black <gabeblack@google.com>
Mon, 29 Apr 2019 23:20:45 +0000 (16:20 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 30 Apr 2019 18:52:13 +0000 (18:52 +0000)
Those types aren't generic or used outside of SPARC.

Change-Id: I9bb154920a9625f12388c3d295dc933ab51fadde
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18469
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/sparc/interrupts.hh
src/arch/sparc/isa_traits.hh
src/arch/sparc/tlb.cc
src/arch/sparc/ua2005.cc
src/dev/sparc/iob.cc

index e6c92667603244f966ed20312b8596d56dfa2fe6..abc899efbeb74bb107f1418e13b2d0eba84cbab9 100644 (file)
 namespace SparcISA
 {
 
+enum InterruptTypes
+{
+    IT_TRAP_LEVEL_ZERO,
+    IT_HINTP,
+    IT_INT_VEC,
+    IT_CPU_MONDO,
+    IT_DEV_MONDO,
+    IT_RES_ERROR,
+    IT_SOFT_INT,
+    NumInterruptTypes
+};
+
 class Interrupts : public SimObject
 {
   private:
index 58d8437ad78a24f3c6f6dd7f00742dc45a591c7d..5bcfc04a43a6310cc973787db10f13d81f6356e0 100644 (file)
@@ -61,18 +61,6 @@ const Addr VAddrAMask = ULL(0xFFFFFFFF);
 const Addr PAddrImplMask = ULL(0x000000FFFFFFFFFF);
 const Addr BytesInPageMask = ULL(0x1FFF);
 
-enum InterruptTypes
-{
-    IT_TRAP_LEVEL_ZERO,
-    IT_HINTP,
-    IT_INT_VEC,
-    IT_CPU_MONDO,
-    IT_DEV_MONDO,
-    IT_RES_ERROR,
-    IT_SOFT_INT,
-    NumInterruptTypes
-};
-
 // Memory accesses cannot be unaligned
 const bool HasUnalignedMemAcc = false;
 
index b2078dd5b51e2a474739f1e1405011d2cbb2830c..8564c43996f681e0544a7d7488fb1d74dbd4eea1 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "arch/sparc/asi.hh"
 #include "arch/sparc/faults.hh"
+#include "arch/sparc/interrupts.hh"
 #include "arch/sparc/registers.hh"
 #include "base/bitfield.hh"
 #include "base/compiler.hh"
index 4cafff47c07687e26cb4216535890e36d73b8309..389549b40c42ab1ed764a337a8fd83c291b7c35b 100644 (file)
@@ -26,6 +26,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "arch/sparc/interrupts.hh"
 #include "arch/sparc/isa.hh"
 #include "arch/sparc/kernel_stats.hh"
 #include "arch/sparc/registers.hh"
index f1465361545d8d3b00ad9971742fd89196dbc659..1df6decb535fbf69763e8f6af417c617fe3ec9d5 100644 (file)
@@ -40,6 +40,7 @@
 #include <cstring>
 
 #include "arch/sparc/faults.hh"
+#include "arch/sparc/interrupts.hh"
 #include "arch/sparc/isa_traits.hh"
 #include "base/bitfield.hh"
 #include "base/trace.hh"