[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCHv3 18/20] eepro100: Add diagnose command
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCHv3 18/20] eepro100: Add diagnose command |
Date: |
Tue, 2 Mar 2010 22:37:58 +0100 |
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 <address@hidden>
---
hw/eepro100.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/hw/eepro100.c b/hw/eepro100.c
index e10ce62..0f07b70 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;
--
1.7.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCHv3 18/20] eepro100: Add diagnose command,
Stefan Weil <=