POOL32B 001000 |
A0 0 |
bit |
base |
ACLR 1011 |
offset |
6 |
2 |
3 |
5 |
4 |
12 |
ACLR bit, offset(base) |
microMIPS, MCU ASE |
Atomically Clear Bit within Byte |
Atomically Clear Bit within Byte
Disable interrupts; temp = memory[GPR[base] + offset]; temp = (temp and ~(1 << bit)); memory[GPR[base] + offset] = temp; Enable Interrupts;
The contents ofthe byte atthe memory location specified by the effective address are fetched. The specified bit within the byte is cleared to zero. The modified byte is stored in memory at the location specified by the effective address. The 12-bit signed offset is added to the contents of GPR base to form the effective address. The read-modifywrite sequence cannot be interrupted.
Transactions with locking semantics occurin some memory interconnects/busses.Itisimplementation-specific whether this instruction uses such locking transactions.
is UNPREDICTABLE if an ACLR instruction is executed in the delay slot of aThe operation ofthe processor branch or jump instruction.
vAddr = sign_extend(offset) + GPR[base] (pAddr, CCA) = AddressTranslation (vAddr, DATA, STORE) pAddr = pAddrPSIZE-1..2 || (pAddr1..0 xor ReverseEndian2) TempIE = StatusIE StatusIE = 0 memword = LoadMemory (CCA, BYTE, pAddr, vAddr, DATA) byte = vAddr1..0 xor BigEndianCPU2 temp = memword7+8*byte..8*byte temp = temp and (( 1 || 0bit) xor 0xFF)) dataword = temp || 08*byte StoreMemory (CCA, BYTE, dataword, pAddr, vAddr, DATA) StatusIE = TempIE
TLB Refill, TLB Invalid, TLB Modified, Address Error, Watch
Upon a TLB miss, a TLBS exception is signalled in the ExcCode field ofthe Cause register. For address error, a
ADES exception is signalled in the ExcCode field of the Cause register. For other data-stream related exceptions such as Debug Data Break exceptions and Watch exceptions, it is implementation-specific whether this instruction is treated as a load or as a store.