PIIX 3/4: Put USB PCI register 60h to the proper place.

This commit is contained in:
OBattler
2025-11-08 03:28:26 +01:00
parent 3da005639f
commit 59ccb22924

View File

@@ -1376,13 +1376,12 @@ piix_reset_hard(piix_t *dev)
if (dev->type < 5)
fregs[0x20] = 0x01;
fregs[0x3d] = 0x04;
if (dev->type > 4)
fregs[0x60] = (dev->type > 3) ? 0x10 : 0x00;
if (dev->type < 5) {
fregs[0x60] = (dev->type > 3) ? 0x10 : 0x00;
fregs[0x6a] = (dev->type == 3) ? 0x01 : 0x00;
fregs[0xc1] = 0x20;
fregs[0xff] = (dev->type > 3) ? 0x10 : 0x00;
}
} else
dev->max_func = 2; /* It starts with USB disabled, then enables it. */
}