Here are two patches that I just resurrected from an older branch
on my hard disk. They might come in handy when we finally switch
to an universal QEMU binary that contains both targets, the x86_64
and the i386 target at once. In this case we need the SMM code for
both, 32-bit and 64-bit mode in the binary, and select it during
runtime.
Thomas Huth (2):
target/i386/tcg/sysemu: Move target specific SMM code to separate
functions
target/i386/tcg/sysemu: Allow 32-bit SMM code to be used in the 64-bit
binary
target/i386/tcg/system/smm_helper.c | 104 ++++++++++++++++++----------
1 file changed, 69 insertions(+), 35 deletions(-)
--
2.53.0