summaryrefslogtreecommitdiffstats
path: root/linux-user/main.c
diff options
context:
space:
mode:
authorHervé Poussineau2017-12-10 18:27:03 +0100
committerMichael S. Tsirkin2017-12-22 00:42:03 +0100
commit880b1ffe6ec2f0ae25cc4175716227ad275e8b8a (patch)
treeeb0c9904e1f09b56e0c556cf7518716f7c1f4fb6 /linux-user/main.c
parentdump-guest-memory.py: fix "You can't do that without a process to debug" (diff)
downloadqemu-880b1ffe6ec2f0ae25cc4175716227ad275e8b8a.tar.gz
qemu-880b1ffe6ec2f0ae25cc4175716227ad275e8b8a.tar.xz
qemu-880b1ffe6ec2f0ae25cc4175716227ad275e8b8a.zip
smbus: do not immediately complete commands
PIIX4 errata says that "immediate polling of the Host Status Register BUSY bit may indicate that the SMBus is NOT busy." Due to this, some code does the following steps: (a) set parameters (b) start command (c) check for smbus busy bit set (to know that command started) (d) check for smbus busy bit not set (to know that command finished) Let (c) happen, by immediately setting the busy bit, and really executing the command when status register has been read once. This fixes a problem with AMIBIOS, which can now properly initialize the PIIX4. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'linux-user/main.c')
0 files changed, 0 insertions, 0 deletions