From 80b440414d3c82313a907a18062c6f0a9c08b5bb Mon Sep 17 00:00:00 2001 From: espes Date: Sat, 17 Oct 2015 01:59:04 +1100 Subject: [PATCH] PGRAPH_INTR_ERROR and not PGRAPH_INTR_NOTIFY is used for software method calls? --- 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 9e8ebbe942..82969bba16 100644 --- a/hw/xbox/nv2a.c +++ b/hw/xbox/nv2a.c @@ -4099,7 +4099,7 @@ static void pgraph_method(NV2AState *d, * but nothing obvious sticks out. Weird. */ if (parameter != 0) { - assert(!(pg->pending_interrupts & NV_PGRAPH_INTR_NOTIFY)); + assert(!(pg->pending_interrupts & NV_PGRAPH_INTR_ERROR)); pg->trapped_channel_id = pg->channel_id; @@ -4107,7 +4107,7 @@ static void pgraph_method(NV2AState *d, pg->trapped_method = method; pg->trapped_data[0] = parameter; pg->notify_source = NV_PGRAPH_NSOURCE_NOTIFICATION; /* TODO: check this */ - pg->pending_interrupts |= NV_PGRAPH_INTR_NOTIFY; + pg->pending_interrupts |= NV_PGRAPH_INTR_ERROR; qemu_mutex_unlock(&pg->lock); qemu_mutex_lock_iothread(); @@ -4115,7 +4115,7 @@ static void pgraph_method(NV2AState *d, qemu_mutex_lock(&pg->lock); qemu_mutex_unlock_iothread(); - while (pg->pending_interrupts & NV_PGRAPH_INTR_NOTIFY) { + while (pg->pending_interrupts & NV_PGRAPH_INTR_ERROR) { qemu_cond_wait(&pg->interrupt_cond, &pg->lock); } }