qemu-system-x86 code emulation bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.11) included in Ubuntu emulates X86 code incorrectly, resulting in wrong behaviour notably in some DOS QuickBASIC programs where functions such as STR$() produce incorrect results. This also affects old DOS binaries compiled in 1980s that are using QB runtime. The bug is present when -enable-kvm is not used.
Details: https:/
The fix is one line change, see QEMU upstream commit
commit 3cb3a7720b01830
Author: Richard Henderson <email address hidden>
Date: Mon Jul 20 08:30:40 2020 -0700
target/i386: Save cc_op before loop insns
This fix should be backported to Ubuntu version.