mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-07 18:36:09 +08:00
pci_bus: Allow device handlers to see word/double-word accesses
To actually see word-size or double-word-size access in the handler, they need to be declared as such. So we set the appropriate access so that aligned word/double-word access are allowed. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
cef4197171
commit
596491137f
@ -346,8 +346,9 @@ static void InitializePCI(void) {
|
||||
PCI_ReadHandler[0].Install(0xcf8,read_pci_addr,IO_MD);
|
||||
// install PCI-register read/write handlers
|
||||
for (Bitu ct=0;ct<4;ct++) {
|
||||
PCI_WriteHandler[1+ct].Install(0xcfc+ct,write_pci,IO_MB);
|
||||
PCI_ReadHandler[1+ct].Install(0xcfc+ct,read_pci,IO_MB);
|
||||
Bitu msk = IO_MB | ((ct & 1) ? 0 : IO_MW) | ((ct & 3) ? 0 : IO_MD);;
|
||||
PCI_WriteHandler[1+ct].Install(0xcfc+ct,write_pci,msk);
|
||||
PCI_ReadHandler[1+ct].Install(0xcfc+ct,read_pci,msk);
|
||||
}
|
||||
|
||||
callback_pci.Install(&PCI_PM_Handler,CB_IRETD,"PCI PM");
|
||||
|
Loading…
x
Reference in New Issue
Block a user