changed interrupt index to be 64 bits long and fixed a bad include
authorAli Saidi <saidi@eecs.umich.edu>
Mon, 16 Feb 2004 05:21:42 +0000 (00:21 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Mon, 16 Feb 2004 05:21:42 +0000 (00:21 -0500)
in adaptec_ctrl.hh

cpu/base_cpu.cc:
    changed index to 64bits
cpu/base_cpu.hh:
    changed index to 64 bits

--HG--
extra : convert_revision : e70d5f09f6066b90fca82cae22bb7d7eb705d65e

cpu/base_cpu.cc
cpu/base_cpu.hh

index 604ee335d373503dc1b6a56d73c8f6bd5947641e..bba31303bd4e30d6ca47bfcbae850ed99fc33f16 100644 (file)
@@ -196,7 +196,7 @@ BaseCPU::post_interrupt(int int_num, int index)
     if (int_num < 0 || int_num >= NumInterruptLevels)
         panic("int_num out of bounds\n");
 
-    if (index < 0 || index >= sizeof(uint8_t) * 8)
+    if (index < 0 || index >= sizeof(uint64_t) * 8)
         panic("int_num out of bounds\n");
 
     AlphaISA::check_interrupts = 1;
@@ -212,7 +212,7 @@ BaseCPU::clear_interrupt(int int_num, int index)
     if (int_num < 0 || int_num >= NumInterruptLevels)
         panic("int_num out of bounds\n");
 
-    if (index < 0 || index >= sizeof(uint8_t) * 8)
+    if (index < 0 || index >= sizeof(uint64_t) * 8)
         panic("int_num out of bounds\n");
 
     interrupts[int_num] &= ~(1 << index);
index 64803573234d8693f6777463dc5dd7434c86f805..0041ecc99872980c2e2b3e3c3aad5ffe08e63769 100644 (file)
@@ -48,7 +48,7 @@ class BaseCPU : public SimObject
 #ifdef FULL_SYSTEM
   protected:
     Tick frequency;
-    uint8_t interrupts[NumInterruptLevels];
+    uint64_t interrupts[NumInterruptLevels];
     uint64_t intstatus;
 
   public: