- pci core: write access to base address registers disabled

This commit is contained in:
Volker Ruppert 2004-07-12 18:16:16 +00:00
parent a17fb79623
commit 295dd25e10
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: pci.cc,v 1.35 2004-07-11 20:38:48 vruppert Exp $
// $Id: pci.cc,v 1.36 2004-07-12 18:16:16 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -327,6 +327,8 @@ bx_pci_c::pci_write(Bit8u address, Bit32u value, unsigned io_len)
Bit8u value8;
if ((address >= 0x10) && (address < 0x34))
return;
if (io_len <= 4) {
for (unsigned i=0; i<io_len; i++) {
value8 = (value >> (i*8)) & 0xFF;

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: pci2isa.cc,v 1.18 2004-07-08 18:45:03 vruppert Exp $
// $Id: pci2isa.cc,v 1.19 2004-07-12 18:16:16 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -361,6 +361,8 @@ bx_pci2isa_c::pci_write(Bit8u address, Bit32u value, unsigned io_len)
Bit8u value8;
if ((address >= 0x10) && (address < 0x34))
return;
if (io_len <= 4) {
for (unsigned i=0; i<io_len; i++) {
value8 = (value >> (i*8)) & 0xFF;