[SeaBIOS] [PATCHv3 0/2] Emulate "leal" instruction to workaround x86emu bugs
Kevin O'Connor
kevin at koconnor.net
Sat Apr 11 20:07:46 CEST 2015
On Sat, Apr 11, 2015 at 08:28:06PM +0300, Michael Tokarev wrote:
> 11.04.2015 18:08, Kevin O'Connor wrote:
> > 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)
> > instructions.
>
> Maybe it is possible to tell gcc to not produce this instruction
> in the first place?
That would certainly be better. Any idea how to do that?
-Kevin
More information about the SeaBIOS
mailing list