Skip to contentSkip to conversation

mmio_decode()

DISCUSSION Jan Beulich 2 participants 2 messages Nov 21, 2006

lore
Share & tools
lore
#0 lore raw

Could anyone enlighten me why this function decodes arbitrary opcodes? I.e. 0x20...0x23 are all getting decoded, but only 0x00 (and not 0x01...0x03) and only 0x2B (and not 0x2A). I guess this is based on observed instructions used for mmio, but - this doesn't make sense! That way, we'll never get to a point where arbitrary OSes (or other environments) can get emulated.

(To make things odd, I'm complaining about this while the absence of a decode for 0x00 actually helped pointing out another problem that I'm in the process of trying to address: Newer isolinux runs partly in non-flat protected mode, which apparently isn't generally being considered a supported environment).

Jan

#1 lore raw
Quoted 6 lines · Jan Beulich

Could anyone enlighten me why this function decodes arbitrary opcodes? I.e. 0x20...0x23 are all getting decoded, but only 0x00 (and not 0x01...0x03) and only 0x2B (and not 0x2A). I guess this is based on observed instructions used for mmio, but - this doesn't make sense! That way, we'll never get to a point where arbitrary OSes (or other environments) can get emulated.

Opcodes get faulted in as needed. Pretty stupid I agree.

-- Keir