126a127,137
> #
> # Set up the target code segment. Do this now so we have the right
> # permissions when setting up the stack frame.
> #
> srli t5, t4, 16, dataSize=8
> andi t5, t5, 0xFF, dataSize=8
> wrdl cs, t3, t5, dataSize=8
> # Tuck away the old CS for use below
> limm t10, 0, dataSize=8
> rdsel t10, cs, dataSize=2
> wrsel cs, t5, dataSize=2
127a139
>
136,138c148
< limm t5, 0, dataSize=8
< rdsel t5, cs, dataSize=2
< st t5, hs, [1, t0, t6], 8 + %(errorCodeSize)d, dataSize=8, addressSize=8
---
> st t10, hs, [1, t0, t6], 8 + %(errorCodeSize)d, dataSize=8, addressSize=8
150,157d159
< # Set up the target code segment
< #
< srli t5, t4, 16, dataSize=8
< andi t5, t5, 0xFF, dataSize=8
< wrdl cs, t3, t5, dataSize=8
< wrsel cs, t5, dataSize=2
<
< #