Fixed some compile-breaking bugs in the i686 instruction code; Enabled logging of bad/unimplemented IDE commands.

This commit is contained in:
OBattler
2016-08-09 03:02:27 +02:00
parent a098bc2338
commit 8a588dcc82
2 changed files with 8 additions and 6 deletions

View File

@@ -1191,6 +1191,7 @@ void writeide(int ide_board, uint16_t addr, uint8_t val)
case WIN_IDENTIFY: /* Identify Device */
case 0xEF:
if(val == 0xEF) pclog("IDE command EF issued\n");
// output=3;
// timetolive=500;
ide->atastat = BUSY_STAT;
@@ -1214,6 +1215,7 @@ void writeide(int ide_board, uint16_t addr, uint8_t val)
ide->error = ABRT_ERR;
ide_irq_raise(ide);
/* fatal("Bad IDE command %02X\n", val);*/
pclog("Bad IDE command %02X\n", val);
return;
}