{
// Determine what memory spaces are currently active.
Iris::CanonicalMsn in_msn;
- switch (currEL(this)) {
- case EL3:
+ switch (ArmISA::currEL(this)) {
+ case ArmISA::EL3:
in_msn = Iris::SecureMonitorMsn;
break;
- case EL2:
+ case ArmISA::EL2:
in_msn = Iris::NsHypMsn;
break;
default:
break;
}
- Iris::CanonicalMsn out_msn = isSecure(this) ?
+ Iris::CanonicalMsn out_msn = ArmISA::isSecure(this) ?
Iris::PhysicalMemorySecureMsn : Iris::PhysicalMemoryNonSecureMsn;
// Figure out what memory spaces match the canonical numbers we need.
if (idx == ArmISA::INTREG_R13_MON || idx == ArmISA::INTREG_R14_MON) {
orig_cpsr = readMiscRegNoEffect(ArmISA::MISCREG_CPSR);
ArmISA::CPSR new_cpsr = orig_cpsr;
- new_cpsr.mode = MODE_MON;
+ new_cpsr.mode = ArmISA::MODE_MON;
non_const_this->setMiscReg(ArmISA::MISCREG_CPSR, new_cpsr);
}
if (idx == ArmISA::INTREG_R13_MON || idx == ArmISA::INTREG_R14_MON) {
orig_cpsr = readMiscRegNoEffect(ArmISA::MISCREG_CPSR);
ArmISA::CPSR new_cpsr = orig_cpsr;
- new_cpsr.mode = MODE_MON;
+ new_cpsr.mode = ArmISA::MODE_MON;
setMiscReg(ArmISA::MISCREG_CPSR, new_cpsr);
}
RegVal result = Iris::ThreadContext::readCCRegFlat(idx);
switch (idx) {
case ArmISA::CCREG_NZ:
- result = ((CPSR)result).nz;
+ result = ((ArmISA::CPSR)result).nz;
break;
case ArmISA::CCREG_FP:
result = bits(result, 31, 28);
switch (idx) {
case ArmISA::CCREG_NZ:
{
- CPSR cpsr = readMiscRegNoEffect(ArmISA::MISCREG_CPSR);
+ ArmISA::CPSR cpsr = readMiscRegNoEffect(ArmISA::MISCREG_CPSR);
cpsr.nz = val;
val = cpsr;
}
break;
case ArmISA::CCREG_FP:
{
- FPSCR fpscr = readMiscRegNoEffect(ArmISA::MISCREG_FPSCR);
+ ArmISA::FPSCR fpscr = readMiscRegNoEffect(ArmISA::MISCREG_FPSCR);
val = insertBits(fpscr, 31, 28, val);
}
break;
{ ArmISA::INTREG_R13_FIQ, "X29" },
{ ArmISA::INTREG_R14_FIQ, "X30" },
// Skip zero, ureg0-2, and dummy regs.
- { INTREG_SP0, "SP_EL0" },
- { INTREG_SP1, "SP_EL1" },
- { INTREG_SP2, "SP_EL2" },
- { INTREG_SP3, "SP_EL3" },
+ { ArmISA::INTREG_SP0, "SP_EL0" },
+ { ArmISA::INTREG_SP1, "SP_EL1" },
+ { ArmISA::INTREG_SP2, "SP_EL2" },
+ { ArmISA::INTREG_SP3, "SP_EL3" },
});
Iris::ThreadContext::IdxNameMap CortexA76TC::ccRegIdxNameMap({
#include "arch/arm/fastmodel/iris/interrupts.hh"
#include "arch/arm/fastmodel/iris/thread_context.hh"
-#include "arch/arm/isa_traits.hh"
+#include "arch/arm/interrupts.hh"
#include "arch/arm/miscregs.hh"
#include "arch/arm/miscregs_types.hh"
#include "arch/arm/types.hh"
for (bool &i: interrupts)
i = false;
- interrupts[INT_ABT] = phys_abort;
- interrupts[INT_IRQ] = phys_irq;
- interrupts[INT_FIQ] = phys_fiq;
- interrupts[INT_SEV] = tc->readMiscReg(MISCREG_SEV_MAILBOX);
- interrupts[INT_VIRT_IRQ] = virt_irq;
- interrupts[INT_VIRT_FIQ] = virt_fiq;
+ interrupts[ArmISA::INT_ABT] = phys_abort;
+ interrupts[ArmISA::INT_IRQ] = phys_irq;
+ interrupts[ArmISA::INT_FIQ] = phys_fiq;
+ interrupts[ArmISA::INT_SEV] = tc->readMiscReg(MISCREG_SEV_MAILBOX);
+ interrupts[ArmISA::INT_VIRT_IRQ] = virt_irq;
+ interrupts[ArmISA::INT_VIRT_FIQ] = virt_fiq;
for (int i = 0; i < NumInterruptTypes; i++) {
if (interrupts[i])