Download IDT MIPS Microprocessor Family Software Reference Manual

Transcript
SDL
Store Doubleword Left
The bytes stored from the source register to memory depend on both the offset of the
effective address within an aligned doubleword, i.e. the low three bits of the address
(vAddr2..0), and the current byte ordering mode of the processor (big- or little-endian).
The table below shows the bytes stored for every combination of offset and byte
ordering.
Table A-31
Bytes Stored by SDL Instruction
Initial Memory contents and byte offsets
most
—significance—
Contents of
Source Register
least
0
1
2
3
4
5
6
7 ← big-
most
i
j
k
l
m
n
o
p
A B C D E F G H
7
6
5
4
3
2
1
0 ← little-endian
—significance—
least
Memory contents after instruction (shaded is unchanged)
Little-endian byte ordering
Big-endian byte ordering
vAddr2..0
A B C D E F G H
0
i
j
k
l
m
n
o
A B C D E F G
1
i
j
k
l
m
n
A B
A B C
i
A
i
j
A B C D E F
2
i
j
k
l
m
i
j
k
A B C D E
3
i
j
k
l
A B C D
i
j
k
l
A B C D
4
i
j
k
i
j
k
l
m
A B C
5
i
j
A B C D E F
i
j
k
l
m
n
A B
6
i
i
j
k
l
m
n
o
A
7
A B C D E
A B C D E F G
A B C D E F G H
Restrictions:
None
Operation:
64-bit processors
vAddr ← sign_extend(offset) + GPR[base]
(pAddr, uncached) ← AddressTranslation (vAddr, DATA, STORE)
pAddr ← pAddr(PSIZE-1)..3 || (pAddr2..0 xor ReverseEndian3)
If BigEndianMem = 0 then
pAddr ← pAddr(PSIZE-1)..3 || 03
endif
byte ← vAddr2..0 xor BigEndianCPU3
datadouble ← 056–8*byte || GPR[rt]63..56–8*byte
StoreMemory (uncached, byte, datadouble, pAddr, vAddr, DATA)
Exceptions:
TLB Refill, TLB Invalid
TLB Modified
Bus Error
Address Error
Reserved Instruction
A-147