[SeaBIOS] [PATCHv3 0/2] Emulate "leal" instruction to workaround x86emu bugs

Kevin O'Connor kevin at koconnor.net
Sat Apr 11 17:08:50 CEST 2015

With a few additional checks it's possible to emulate all the leal
cases without requiring a function call.  Although this makes the
vgafixup.py code a little more complex it eliminates the need for the
"emulate_leal" function and it produces better code.  In my tests,
almost all "leal" instructions are replaced with 4 (or fewer)


Kevin O'Connor (2):
  vgabios: Add config option for assembler fixups
  vgabios: Emulate "leal" instruction

 Makefile            | 21 +++++++++---------
 scripts/vgafixup.py | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++---
 vgasrc/Kconfig      | 10 +++++++++
 vgasrc/vgaentry.S   | 28 +++++------------------
 4 files changed, 87 insertions(+), 36 deletions(-)


More information about the SeaBIOS mailing list