From e1e76c5da498c1964416166a0910e4f3d0fc06d8 Mon Sep 17 00:00:00 2001 From: Melissa Goad Date: Mon, 2 Jan 2017 20:57:37 -0600 Subject: [PATCH] Add in reading PROM from MMIO --- src/vid_nv_riva128.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vid_nv_riva128.c b/src/vid_nv_riva128.c index 6a763dc6d..40c1d6922 100644 --- a/src/vid_nv_riva128.c +++ b/src/vid_nv_riva128.c @@ -1313,6 +1313,9 @@ static uint8_t riva128_mmio_read(uint32_t addr, void *p) case 0x101000 ... 0x101fff: ret = riva128_pextdev_read(addr, riva128); break; + case 0x300000 ... 0x30ffff: + ret = riva128->bios_rom.rom[addr & riva128->bios_rom.mask]; + break; case 0x6013b4 ... 0x6013b5: case 0x6013d4 ... 0x6013d5: case 0x0c03c2 ... 0x0c03c5: case 0x0c03cc ... 0x0c03cf: ret = riva128_in(addr & 0xfff, riva128); break;