summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/alpha/regfile.hh4
-rw-r--r--cpu/cpu_exec_context.hh2
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/alpha/regfile.hh b/arch/alpha/regfile.hh
index 2a3312584..af01b7829 100644
--- a/arch/alpha/regfile.hh
+++ b/arch/alpha/regfile.hh
@@ -162,9 +162,9 @@ namespace AlphaISA
#if FULL_SYSTEM
int intrflag; // interrupt flag
inline int instAsid()
- { return miscRegs.getInstAsid(); }
+ { return miscRegFile.getInstAsid(); }
inline int dataAsid()
- { return miscRegs.getDataAsid(); }
+ { return miscRegFile.getDataAsid(); }
#endif // FULL_SYSTEM
void clear()
diff --git a/cpu/cpu_exec_context.hh b/cpu/cpu_exec_context.hh
index feaf29d12..c74feec68 100644
--- a/cpu/cpu_exec_context.hh
+++ b/cpu/cpu_exec_context.hh
@@ -497,7 +497,7 @@ class CPUExecContext
int readIntrFlag() { return regs.intrflag; }
void setIntrFlag(int val) { regs.intrflag = val; }
Fault hwrei();
- bool inPalMode() { return AlphaISA::PcPAL(regs.pc); }
+ bool inPalMode() { return AlphaISA::PcPAL(regs.readPC()); }
bool simPalCheck(int palFunc);
#endif