ARM: Adds dummy support for a L2 latency miscreg.

This commit is contained in:
Ali Saidi 2011-02-23 15:10:48 -06:00
parent 981e1dd7ee
commit d63020717c
3 changed files with 6 additions and 0 deletions

View 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:

View 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;

View file

@ -191,6 +191,7 @@ namespace ArmISA
MISCREG_MVBAR,
MISCREG_ISR,
MISCREG_FCEIDR,
MISCREG_L2LATENCY,
MISCREG_CP15_END,