val R_read : forall 'n. int('n) -> bits(32)
function R_read n = {
offset : int = undefined;
if n == 15 then {
let 'offset = if CurrentInstrSet() == InstrSet_A32 then 8 else 4;
return(_PC[31 .. 0] + offset)
} else {
return(Rmode_read(n, PSTATE.M))
}
}
Made from ScarletNX's Sail at 166ad3910f80. sail-arm's definitions are Arm's ASL in Sail (BSD 3-Clause Clear, license); ScarletNX's fixups are GPL-3.0-or-later.