LWX rd, index(base) |
DSP |
Load Word Indexed |
LWX rd, rs(rt) |
Replaced with LWX in nanoMIPS |
Load Word Indexed |
Load Word Indexed
To load a word value from memory as a signed value, using indexed addressing.
rd = memory[base+index]
The contents of GPR index is added to the contents of GPR base to form an effective address. The contents of the 32bit word at the memory location specified by the aligned effective address are fetched and placed in GPR rd.
The effective address must be naturally-aligned. If either of the two least-significant bits of the address are non-zero, an Address Error exception occurs.
ValidateAccessToDSPResources() vAddr31..0 = GPR[index]31..0 + GPR[base]31..0 if ( vAddr1..0 != 02 ) then SignalException( AddressError ) endif ( pAddr, CCA ) = AddressTranslation( vAddr, DATA, LOAD ) memwordGPRLEN..0 = LoadMemory( CCA, WORD, pAddr, vAddr, DATA ) GPR[rd]31..0 = memword31..0
Reserved Instruction, DSP Disabled, TLB Refill, TLB Invalid, Bus Error, Address Error, Watch