POOL32C 011000 |
rt |
base |
LD-EVA 0110 |
LLE 110 |
offset |
6 |
5 |
5 |
4 |
3 |
9 |
LLE rt, offset(base) |
microMIPS |
Load Linked Word EVA |
Load Linked Word EVA
To load a word from a user mode virtual address when executing in kernel mode for an atomic read-modify-write
GPR[rt] = memory[GPR[base] + offset]
The LLE and SCE instructions provide the primitives to implement atomic read-modify-write (RMW) operations for synchronizable memory locations using user mode virtual addresses while executing in kernel mode.
The contents of the 32-bit word at the memory location specified by the aligned effective address are fetched, signextended to the GPR register length, and written into GPR rt. The 9-bit signed offset is added to the contents of
GPR base to form an effective address.
This begins a RMW sequence on the current processor. There can be only one active RMW sequence per processor.
When an LLE is executed it starts an active RMW sequence replacing any other sequence that was active. The RMW sequence is completed by a subsequent SCE instruction that either completes the RMW sequence atomically and succeeds, or does not and fails.
Executing LLE on one processor does not cause an action that, by itself, causes an SCE for the same block to fail on another processor.
An execution of LLE does not have to be followed by execution of SCE; a program is free to abandon the RMW sequence without attempting a write.
The LLE instruction functions the same as the LL 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, Segmentation Control for additional information.
Implementation of this instruction is specified by the Config5EVA field being set to one.
The addressed location must be synchronizable by all processors and I/O devices sharing the location; if it is not, the result is UNPREDICTABLE. Which storage is synchronizable is a function of both CPU and system implementations. See the documentation of the SCE instruction for the formal definition.
The effective address must be naturally-aligned. If either of the 2 least-significant bits of the effective address is nonzero, an Address Error exception occurs.
Providing misaligned support for Release 6 is not a requirement for this instruction.
vAddr = sign_extend(offset) + GPR[base] if vAddr1..0 != 02 then SignalException(AddressError) endif (pAddr, CCA) = AddressTranslation (vAddr, DATA, LOAD) pAddr = pAddrPSIZE-1..3 || (pAddr2..0 xor (ReverseEndian || 02)) memdoubleword = LoadMemory (CCA, WORD, pAddr, vAddr, DATA) byte = vAddr2..0 xor (BigEndianCPU || 02) GPR[rt] = sign_extend(memdoubleword31+8*byte..8*byte) LLbit = 1
TLB Refill, TLB Invalid, Address Error, Reserved Instruction, Watch, Coprocessor Unusable
There is no Load Linked Word Unsigned operation corresponding to Load Word Unsigned.