From: Stefan Weil Date: Tue, 2 Mar 2010 21:37:58 +0000 (+0100) Subject: eepro100: Add diagnose command X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f80a7fc34e35293d209023d6d8f77d00a4e2c165;p=qemu.git eepro100: Add diagnose command Real hardware would run an internal self-test. The emulation just returns a passed status. Original patch was from Reimar Döffinger, thanks. Signed-off-by: Stefan Weil Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/eepro100.c b/hw/eepro100.c index e10ce62426..0f07b702e4 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -958,6 +958,11 @@ static void action_command(EEPRO100State *s) /* Starting with offset 8, the command contains * 64 dwords microcode which we just ignore here. */ break; + case CmdDiagnose: + TRACE(OTHER, logout("diagnose\n")); + /* Make sure error flag is not set. */ + s->tx.status = 0; + break; default: missing("undefined command"); success = false;