scsihd: Abort if RelAdr bit of READ_10.

Like scsicdrom does.
This commit is contained in:
joevt 2024-03-10 01:32:30 -08:00 committed by dingusdev
parent cefe8698da
commit 6bb5227ee1
1 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,9 @@ void ScsiHardDisk::process_command() {
break;
case ScsiCommand::READ_10:
lba = READ_DWORD_BE_U(&cmd[2]);
if (cmd[1] & 1) {
ABORT_F("%s: RelAdr bit set in READ_10", this->name.c_str());
}
this->read(lba, READ_WORD_BE_U(&cmd[7]), 10);
break;
case ScsiCommand::WRITE_10: