From patchwork Sun Feb 14 16:16:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [18/20] eepro100: Add diagnose command Date: Sun, 14 Feb 2010 06:16:27 -0000 From: Stefan Weil X-Patchwork-Id: 45330 Message-Id: <1266164189-21062-18-git-send-email-weil@mail.berlios.de> To: QEMU Developers Cc: 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 --- hw/eepro100.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/eepro100.c b/hw/eepro100.c index 43595eb..1ac89ef 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;