diff options
Diffstat (limited to 'src/arch/alpha/utility.cc')
-rw-r--r-- | src/arch/alpha/utility.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/arch/alpha/utility.cc b/src/arch/alpha/utility.cc index 4de77ffd4..1bac650a0 100644 --- a/src/arch/alpha/utility.cc +++ b/src/arch/alpha/utility.cc @@ -30,18 +30,20 @@ */ #include "arch/alpha/utility.hh" - -#if FULL_SYSTEM #include "arch/alpha/vtophys.hh" #include "mem/fs_translating_port_proxy.hh" -#endif +#include "sim/full_system.hh" namespace AlphaISA { uint64_t getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp) { -#if FULL_SYSTEM + if (!FullSystem) { + panic("getArgument() is Full system only\n"); + M5_DUMMY_RETURN; + } + const int NumArgumentRegs = 6; if (number < NumArgumentRegs) { if (fp) @@ -55,10 +57,6 @@ getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp) (number-NumArgumentRegs) * sizeof(uint64_t)); return arg; } -#else - panic("getArgument() is Full system only\n"); - M5_DUMMY_RETURN; -#endif } void |