Don't fail on atapi command 0xBE
This commit is contained in:
parent
c65fd84d55
commit
84714d17a4
|
@ -1107,6 +1107,14 @@ IDEInterface.prototype.atapi_handle = function()
|
||||||
dbg_log("Unimplemented ATAPI command: " + h(this.data[0]), LOG_DISK);
|
dbg_log("Unimplemented ATAPI command: " + h(this.data[0]), LOG_DISK);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 0xBE:
|
||||||
|
// Hiren's boot CD
|
||||||
|
dbg_log("Unimplemented ATAPI command: " + h(this.data[0]), LOG_DISK);
|
||||||
|
this.data_allocate(0);
|
||||||
|
this.data_end = this.data_length;
|
||||||
|
this.status = 0x50;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
this.status = 0x51;
|
this.status = 0x51;
|
||||||
this.data_length = 0;
|
this.data_length = 0;
|
||||||
|
|
|
@ -340,7 +340,7 @@ else {
|
||||||
}
|
}
|
||||||
|
|
||||||
const eip = emulator.v86.cpu.instruction_pointer[0];
|
const eip = emulator.v86.cpu.instruction_pointer[0];
|
||||||
emulator.v86.cpu.write32(cpu.translate_address_system_read(eip), 0xF4F4F4F4); // hlt
|
emulator.v86.cpu.write32(emulator.v86.cpu.translate_address_system_read(eip), 0xF4F4F4F4); // hlt
|
||||||
|
|
||||||
// XXX: On gdb execution is stopped at this point. On v86 we
|
// XXX: On gdb execution is stopped at this point. On v86 we
|
||||||
// currently don't have this ability, so we record the exception
|
// currently don't have this ability, so we record the exception
|
||||||
|
|
Loading…
Reference in a new issue