1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 79 unchanged lines hidden (view full) --- 88 89namespace X86ISA 90{ 91 uint64_t getArgument(ThreadContext *tc, int number, bool fp); 92 93 static inline bool 94 inUserMode(ThreadContext *tc) 95 { |
96#if FULL_SYSTEM 97 HandyM5Reg m5reg = tc->readMiscRegNoEffect(MISCREG_M5_REG); 98 return m5reg.cpl == 3; 99#else 100 return true; 101#endif |
102 } 103 104 inline bool isCallerSaveIntegerRegister(unsigned int reg) { 105 panic("register classification not implemented"); 106 return false; 107 } 108 109 inline bool isCalleeSaveIntegerRegister(unsigned int reg) { --- 49 unchanged lines hidden --- |