summaryrefslogtreecommitdiff
path: root/src/arch/alpha/isa/fp.isa
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/alpha/isa/fp.isa')
-rw-r--r--src/arch/alpha/isa/fp.isa9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/arch/alpha/isa/fp.isa b/src/arch/alpha/isa/fp.isa
index b1d01724d..e3a6b18ab 100644
--- a/src/arch/alpha/isa/fp.isa
+++ b/src/arch/alpha/isa/fp.isa
@@ -42,21 +42,14 @@ output exec {{
/// instruction in full-system mode.
/// @retval Full-system mode: NoFault if FP is enabled, FenFault
/// if not. Non-full-system mode: always returns NoFault.
-#if FULL_SYSTEM
inline Fault checkFpEnableFault(%(CPU_exec_context)s *xc)
{
Fault fault = NoFault; // dummy... this ipr access should not fault
- if (!ICSR_FPE(xc->readMiscReg(IPR_ICSR))) {
+ if (FULL_SYSTEM && !ICSR_FPE(xc->readMiscReg(IPR_ICSR))) {
fault = new FloatEnableFault;
}
return fault;
}
-#else
- inline Fault checkFpEnableFault(%(CPU_exec_context)s *xc)
- {
- return NoFault;
- }
-#endif
}};
output header {{