41a42,49
>
> static inline bool
> inUserMode(ThreadContext *tc)
> {
> return !(tc->readMiscReg(MISCREG_PSTATE & (1 << 2)) ||
> tc->readMiscReg(MISCREG_HPSTATE & (1 << 2)));
> }
>