Skip to contentSkip to conversation

hvm_decode() questions

DISCUSSION Jan Beulich 2 participants 2 messages Nov 24, 2006

lore
Share & tools
lore
#0 lore raw

1) single-byte opcode 0x87 (xchg): What is this strange conditional

        if ( ((*(opcode+1)) & 0xc7) == 5 )

supposed to address? xchg has absolutely symmetric operands.

2) two-byte opcode 0xB7 (movzx): What is this dependency on rex bit 3 doing here? Apparently this was based on Intel's (broken) documentation - the source operand is always 16 bits.

Unless someone can explain these, I'll send a patch to remove them.

Jan

#1 lore raw
Quoted 11 lines · Jan Beulich

1) single-byte opcode 0x87 (xchg): What is this strange conditional

        if ( ((*(opcode+1)) & 0xc7) == 5 )

supposed to address? xchg has absolutely symmetric operands.

2) two-byte opcode 0xB7 (movzx): What is this dependency on rex bit 3 doing here? Apparently this was based on Intel's (broken) documentation - the source operand is always 16 bits.

Unless someone can explain these, I'll send a patch to remove them.

Yes, these can both be removed.

-- Keir