ARM: Adds dummy support for a L2 latency miscreg.
authorAli Saidi <Ali.Saidi@ARM.com>
Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)
committerAli Saidi <Ali.Saidi@ARM.com>
Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)
src/arch/arm/isa/formats/misc.isa
src/arch/arm/miscregs.cc
src/arch/arm/miscregs.hh

index 6a734a5822bbceba7f95c9c7403bf31d2bdf5d47..3bcb5c97d020e7a60e8af00023d5b453dc2c7899 100644 (file)
@@ -143,6 +143,9 @@ let {{
           case MISCREG_BPIALL:
             return new WarnUnimplemented(
                     isRead ? "mrc bpiall" : "mcr bpiall", machInst);
+          case MISCREG_L2LATENCY:
+            return new WarnUnimplemented(
+                    isRead ? "mrc l2latency" : "mcr l2latency", machInst);
 
             // Write only.
           case MISCREG_TLBIALLIS:
index 13dec0add62d1417c8b5851d4bf3b361911756ca..fc04ce87dec45b47fd0221cd22b541bf28ceb20e 100644 (file)
@@ -381,6 +381,8 @@ decodeCP15Reg(unsigned crn, unsigned opc1, unsigned crm, unsigned opc2)
                     return MISCREG_PMINTENCLR;
                 }
             }
+        } else if (opc1 == 1) {
+            return MISCREG_L2LATENCY;
         }
         //Reserved for Branch Predictor, Cache and TCM operations
         break;
index cf9da428afeb7638b20444005d78f65eda69054e..90b4fd99914c83a33441c705e3a10f554e26d4de 100644 (file)
@@ -191,6 +191,7 @@ namespace ArmISA
         MISCREG_MVBAR,
         MISCREG_ISR,
         MISCREG_FCEIDR,
+        MISCREG_L2LATENCY,
 
 
         MISCREG_CP15_END,