22 static inline unsigned long readRegister(
const unsigned int nReg)
32 unsigned int val = regs->
uregs[nReg];
39 writeRegister(
const unsigned int nReg,
const unsigned long val)
45 static inline unsigned long readCPSR(
void)
50 static inline void writeCPSR(
const unsigned long val)
55 static inline unsigned long readConditionCodes(
void)
64 static inline void writeConditionCodes(
const unsigned long val)
72 rval = regs->ARM_cpsr & ~
CC_MASK;
73 regs->ARM_cpsr = rval | (val &
CC_MASK);