msgclrp

Message Clear Privileged

msgclrp RB

Clears a privileged doorbell interrupt.

Details

The msgclr instruction clears a message previously accepted by the thread executing the msgclr. If the message type is 0x05, it also clears any Directed Hypervisor Doorbell exception for that thread.

Pseudocode Operation

t ← hypervisor thread number of executing thread
if (msgtype = 0x05)
then
clear any Directed Hypervisor Doorbell exception for thread t
else
this instruction is treated as a no-op.

Programming Note

The msgclrp instruction is used to clear messages accepted by the current thread, specifically handling Directed Hypervisor Doorbell exceptions when the message type is 0x05. It operates at a privileged level and should be used carefully to avoid unintended side effects on exception handling.

Example

msgclrp r5

Encoding

Binary Layout
31
0
/
6
/
11
RB
16
150
21
/
31
 
Format X-form
Opcode 0x7C00012C
Extension Privileged

Operands

  • RB
    Type