Return 0 for block decoded I/O address on Mach64 GX. Fixes hang in OS/2 Warp install when using this card.

This commit is contained in:
SarahW 2017-12-03 21:41:09 +00:00
commit 75cdefe0b4

View file

@ -3210,7 +3210,10 @@ uint8_t mach64_pci_read(int func, int addr, void *p)
case 0x12: return mach64->linear_base >> 16;
case 0x13: return mach64->linear_base >> 24;
case 0x14: return 0x01; /*Block decoded IO address*/
case 0x14:
if (mach64->type == MACH64_VT2)
return 0x01; /*Block decoded IO address*/
return 0;
case 0x15: return mach64->block_decoded_io >> 8;
case 0x16: return mach64->block_decoded_io >> 16;
case 0x17: return mach64->block_decoded_io >> 24;