POOL32A 000000 |
rt |
0 00000 |
DMT 0000010101 |
POOL32Axf 111100 |
6 |
5 |
5 |
10 |
6 |
DMT rt |
microMIPS, MIPS MT |
Disable Multi-Threaded Execution |
Disable Multi-Threaded Execution
To return the previous value ofthe VPEControlregister(see Section 6.5) and disable multi-threaded execution.If
DMT is specified without an argument, GPR r0 is implied, which discards the previous value of the VPEControl register.
GPR[rt] = VPEControl; VPEControlTE = 0
The current value ofthe VPEControlregisteris loaded into generalregisterrt. The Threads Enable (TE) bitin the register is then cleared, suspending concurrent execution of instruction streams other than that which
VPEControl
issues the DMT. This is independent of any per-TC halted state.
If access to Coprocessor 0 is not enabled, a Coprocessor Unusable Exception is signaled.
In implementations that do notimplementthe MT Module,this instruction results in a Reserved Instruction Exception.
This operation specification is for the general multi-threading enable/disable operation, with the sc (set/clear) field as a variable. The individual instructions EMT and DMT have a specific value for the sc field.
data = VPEControl GPR[rt] = data VPEControlTE = sc
Coprocessor Unusable
Reserved Instruction (Implementations that do not include the MT Module )
The effects of this instruction are identical to those accomplished by the sequence of reading VPEControl into a GPR, clearing the TE bit to create a temporary value in a second GPR, and writing that value back to VPEControl. Unlike the multiple instruction sequence, however, the DMT instruction does not consume a temporary register, and cannot be aborted by an interrupt or exception.
The effect of a DMT instruction may not be instantaneous. An instruction hazard barrier, e.g., JR.HB,is required to guarantee that all other threads have been suspended. If a DMT instruction is followed in the same instruction stream by an MFC0 or MFTR from the VPEControl register, a JALR.HB, JR.HB, EHB, or ERET instruction must be issued between the DMT and the read of VPEControl to guarantee that the new state of TE will be accessed by the read.