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 <weil@mail.berlios.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
3d0f4b9bb5
commit
f80a7fc34e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user