REGIMM 000001 |
base |
ATOMIC 00111 |
0 |
Bit |
offset |
6 |
5 |
5 |
1 |
3 |
12 |
ACLR bit, offset(base) |
MIPS32, 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 speciied by the effective address are fetched. The speciied bit within the byte is cleared to zero. The modiied byte is stored in memory at the location speciied 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-speciic 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 Reill, TLB Invalid, TLB Modiied, Address Error, Watch
Upon a TLB miss, a TLBS exception is signalled in the ExcCode ield ofthe Cause register. For address error, a
ADES exception is signalled in the ExcCode ield of the Cause register. For other data-stream related exceptions such as Debug Data Break exceptions and Watch exceptions, it is implementation-speciic whether this instruction is treated as a load or as a store.