From f12f82146ad73e10ccfcd2f0d4cc88aa0e48f60a Mon Sep 17 00:00:00 2001 From: espes Date: Wed, 15 Jul 2015 05:01:16 +1000 Subject: [PATCH] bigger mask for PCRTC_START... --- hw/xbox/nv2a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xbox/nv2a.c b/hw/xbox/nv2a.c index 1a226ef674..32b6876cfb 100644 --- a/hw/xbox/nv2a.c +++ b/hw/xbox/nv2a.c @@ -1717,8 +1717,8 @@ static void *nv_dma_map(NV2AState *d, hwaddr dma_obj_address, hwaddr *len) DMAObject dma = nv_dma_load(d, dma_obj_address); /* TODO: Handle targets and classes properly */ - // NV2A_DPRINTF("dma_map %x, %x, %llx %llx\n", - // dma.dma_class, dma.dma_target, dma.address, dma.limit); + NV2A_DPRINTF("dma_map %x, %x, %llx %llx\n", + dma.dma_class, dma.dma_target, dma.address, dma.limit); // assert(dma.address + dma.limit < memory_region_size(d->vram)); *len = dma.limit; return d->vram_ptr + dma.address; @@ -5678,7 +5678,7 @@ static void pcrtc_write(void *opaque, hwaddr addr, update_irq(d); break; case NV_PCRTC_START: - val &= 0x03FFFFFF; + val &= 0x07FFFFFF; assert(val < memory_region_size(d->vram)); d->pcrtc.start = val;