Right, this is better. An even better fix would be to clear CS.RPL
before the popf.
Regards,
Fabrice.
Samuel Thibault wrote:
Hi,
The patch that qemu applies to bochs bios is a bit bugged:
pci_pro_fail:
pop edi
pop esi
- sti
popf
stc
+ and dword ptr[esp+4],0xfffc ;; reset
Hi,
The patch that qemu applies to bochs bios is a bit bugged:
pci_pro_fail:
pop edi
pop esi
- sti
popf
stc
+ and dword ptr[esp+4],0xfffc ;; reset CS.RPL for kqemu
retf
The and operation clears carry... So that pci functions always leave
carry clear, and hence tell operatin