X86: Implement inUserMode for x86.
This commit is contained in:
parent
1cedc748d4
commit
710b43dfbd
1 changed files with 6 additions and 1 deletions
|
@ -93,7 +93,12 @@ namespace X86ISA
|
|||
static inline bool
|
||||
inUserMode(ThreadContext *tc)
|
||||
{
|
||||
return false;
|
||||
#if FULL_SYSTEM
|
||||
HandyM5Reg m5reg = tc->readMiscRegNoEffect(MISCREG_M5_REG);
|
||||
return m5reg.cpl == 3;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
inline bool isCallerSaveIntegerRegister(unsigned int reg) {
|
||||
|
|
Loading…
Reference in a new issue