29.1.9 __builtin_mxc0 Built-in Function

Description

Write val to the coprocessor 0 register specified by rn (register number) and sel (register bank), returning the original value of the coprocessor register.

Prototype

unsigned int __builtin_mxc0(rn, sel, val);

Argument

rn : cp0 register number
sel : cp0 select (bank) number
val : 32-bit value to move to the register

Return Value

unsigned int : previous value in specified CP0 register

Assembler Operator/ Machine Instruction

mfc0 t, cs
mtc0 s, cd

Error Messages

None.