Architecture
152
LWL Load Word Left (cont.) LWL
It is alright to put a load instruction that uses the same rt as the LWL instruction immediately before
LWL (or LWR). The contents of general-purpose register rt are bypassed internally in the
processor, eliminating the need for a NOP between the two instructions.
No Address Error instruction is raised due to misalignment.
Operation :
T:
vAddr ← ((offset
15
)
16
||
offset
15..0
)
+ GPR[base]
(pAddr, uncached) ← AddressTranslation (vAddr, DATA)
pAddr ← pAddr
31..2
|| (pAddr
1..0
xor ReverseEndian
2
)
if BigEndianMem = 0 then
pAddr ← pAddr
PSIZE-31..2
|| 0
2
endif
byte ← vAddr
1..0
xor BigEndianCPU
2
mem ← LoadMemory (uncached, byte, pAddr, vAddr, DATA)
GPR[rt] ← mem
7+8*byte..0
|| GPR[rt]
23-8*byte..0
Exceptions :
UTLB Refill exception (reserved)
TLB Refill exception (reserved)
Address Error exception