Added BX_ERROR for the currently unsupported BIOS ROM enable switches (not used

by Bochs BIOS).
This commit is contained in:
Volker Ruppert 2020-10-30 16:21:23 +00:00
parent bab68dbb2b
commit e9fa62f44f

View File

@ -2,7 +2,7 @@
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002-2018 The Bochs Project
// Copyright (C) 2002-2020 The Bochs Project
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@ -382,6 +382,10 @@ void bx_piix3_c::pci_write_handler(Bit8u address, Bit32u value, unsigned io_len)
BX_DEBUG(("Set BIOS write support to %d", (value8 & 0x04) != 0));
DEV_mem_set_bios_write((value8 & 0x04) != 0);
}
if ((value8 & 0xc0) != (oldval & 0xc0)) {
BX_ERROR(("BIOS enable switches not supported (lower=%d / extended=%d)",
(value8 >> 6) & 1, (value8 >> 7) & 1));
}
BX_P2I_THIS pci_conf[address+i] = value8;
break;
case 0x4f:
@ -392,6 +396,10 @@ void bx_piix3_c::pci_write_handler(Bit8u address, Bit32u value, unsigned io_len)
DEV_ioapic_set_enabled(value8 & 0x01, (BX_P2I_THIS pci_conf[0x80] & 0x3f) << 10);
}
#endif
if ((value8 & 0x02) != (oldval & 0x02)) {
BX_ERROR(("1-meg extended BIOS enable switch not supported (value=%d)",
(value8 >> 1) & 1));
}
}
break;
case 0x60: