diff --git a/src/vid_nv_riva128.c b/src/vid_nv_riva128.c index 011be4c77..584efc3c5 100644 --- a/src/vid_nv_riva128.c +++ b/src/vid_nv_riva128.c @@ -1155,6 +1155,7 @@ static void riva128_pci_write(int func, int addr, uint8_t val, void *p) if (linear_addr) { mem_mapping_set_addr(&riva128->linear_mapping, linear_addr, 0x1000000); + svga->linear_base = linear_addr; } } else @@ -1196,6 +1197,7 @@ static void riva128_pci_write(int func, int addr, uint8_t val, void *p) if (linear_addr) { mem_mapping_set_addr(&riva128->linear_mapping, linear_addr, 0x1000000); + svga->linear_base = linear_addr; } else { diff --git a/src/vid_nv_rivatnt.c b/src/vid_nv_rivatnt.c index efe661aa2..d20910f5d 100644 --- a/src/vid_nv_rivatnt.c +++ b/src/vid_nv_rivatnt.c @@ -1169,6 +1169,7 @@ static void rivatnt_pci_write(int func, int addr, uint8_t val, void *p) if (linear_addr) { mem_mapping_set_addr(&rivatnt->linear_mapping, linear_addr, 0x1000000); + svga->linear_base = linear_addr; } } else @@ -1210,6 +1211,7 @@ static void rivatnt_pci_write(int func, int addr, uint8_t val, void *p) if (linear_addr) { mem_mapping_set_addr(&rivatnt->linear_mapping, linear_addr, 0x1000000); + svga->linear_base = linear_addr; } else {