Re: Protected mode transitions and big real mode... still an issue

Avi Kivity
2008-04-29T23:20:56Z

Laurent Vivier wrote:
>> Why dst.val is not 0x53e10 ?
>>
>
> I can answer myself to this one:
>
> emulate_2op_SrcB("sal", c->src, c->dst, ctxt->eflags);
>
> does nothing if dst.byte == 0
>
> So next question is the good question...
>
>
>> Why dst.byte is 0 ?
>>
>>

Because dst.bytes is only set if dst.type == OP_MEM, or ad hoc in the
instruction itself.

Better to set it unconditionally (and adjust in the instruction if
necessary).

--
Any sufficiently difficult bug is indistinguishable from a feature.