diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-09-19 03:40:30 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-09-19 03:40:30 -0700 |
commit | 978e41eab058100bb784a4229c2c7f5ec1928dd5 (patch) | |
tree | 1e44365ba7a595efbecfc8072f2246d5d194861f /src/arch/alpha/isa/fp.isa | |
parent | 44659cb608bb46023be49c07ecf7ff0fb542b4ab (diff) | |
download | gem5-978e41eab058100bb784a4229c2c7f5ec1928dd5.tar.xz |
Alpha: Get rid of some #if FULL_SYSTEMs in the Alpha ISA description.
The remaining ones are more complicated and may require adjustments in other
parts of the simulator.
Diffstat (limited to 'src/arch/alpha/isa/fp.isa')
-rw-r--r-- | src/arch/alpha/isa/fp.isa | 9 |
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 {{ |