POOL32C 011000 |
rt |
base |
ST-EVA 1010 |
SHE 101 |
offset |
6 |
5 |
5 |
4 |
3 |
9 |
SHE rt, offset(base) |
microMIPS |
Store Halfword EVA |
Store Halfword EVA
To store a halfword to user mode virtual address space when executing in kernel mode.
memory[GPR[base] + offset] = GPR[rt]
The least-significant 16-bit halfword of register rt is stored in memory at the location specified by the aligned effective address. The 9-bit signed offset is added to the contents of GPR base to form the effective address.
The SHE instruction functions the same as the SH instruction, except that address translation is performed using the user mode virtual address space mapping in the TLB when accessing an address within a memory segment configured to use the MUSUK access mode. Memory segments using UUSK or MUSK access modes are also accessible.
Refer to Volume III, Enhanced Virtual Addressing section for additional information.
Implementation of this instruction is specified by the Config5EVA field being set to 1.
Only usable in kernel mode when accessing an address within a segment configured using UUSK, MUSK or
MUSUK access mode.
Pre-Release 6: The effective address must be naturally-aligned. If the least-significant bit of the address is non-zero, an Address Error exception occurs.
Release 6 allows hardware to provide address misalignment support in lieu of requiring natural alignment.
Note: The pseudocode is not completely adapted for Release 6 misalignment support as the handling is implementation dependent.
vAddr = sign_extend(offset) + GPR[base] (pAddr, CCA) = AddressTranslation (vAddr, DATA, STORE) pAddr = pAddrPSIZE-1..3 || (pAddr2..0 xor (ReverseEndian2 || 0)) bytesel = vAddr2..0 xor (BigEndianCPU2 || 0) datadoubleword = GPR[rt]63-8*bytesel..0 || 08*bytesel StoreMemory (CCA, HALFWORD, datadoubleword, pAddr, vAddr, DATA)
TLB Refill, TLB Invalid, Bus Error, Address Error, Watch, Reserved Instruction, Coprocessor Unusable