From dd20a673eda8b9c09f585c0c8990ce7fb72dcc16 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Fri, 12 Jul 2019 10:23:00 -0700 Subject: [PATCH] apu: Fix unused var warnings used only in debug prints --- hw/xbox/mcpx_apu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/xbox/mcpx_apu.c b/hw/xbox/mcpx_apu.c index 677234450c..0be01e0ab2 100644 --- a/hw/xbox/mcpx_apu.c +++ b/hw/xbox/mcpx_apu.c @@ -462,7 +462,9 @@ static const MemoryRegionOps mcpx_apu_mmio_ops = { static void fe_method(MCPXAPUState *d, uint32_t method, uint32_t argument) { +#ifdef MCPX_DEBUG unsigned int slot; +#endif MCPX_DPRINTF("mcpx fe_method 0x%x 0x%x\n", method, argument); @@ -664,15 +666,19 @@ static void fe_method(MCPXAPUState *d, break; } CASE_4(NV1BA0_PIO_SET_OUTBUF_BA, 8): // 8 byte pitch, 4 entries +#ifdef MCPX_DEBUG slot = (method - NV1BA0_PIO_SET_OUTBUF_BA) / 8; //FIXME: Use NV1BA0_PIO_SET_OUTBUF_BA_ADDRESS = 0x007FFF00 ? MCPX_DPRINTF("outbuf_ba[%d]: 0x%08X\n", slot, argument); +#endif //assert(false); //FIXME: Enable assert! no idea what this reg does break; CASE_4(NV1BA0_PIO_SET_OUTBUF_LEN, 8): // 8 byte pitch, 4 entries +#ifdef MCPX_DEBUG slot = (method - NV1BA0_PIO_SET_OUTBUF_LEN) / 8; //FIXME: Use NV1BA0_PIO_SET_OUTBUF_LEN_VALUE = 0x007FFF00 ? MCPX_DPRINTF("outbuf_len[%d]: 0x%08X\n", slot, argument); +#endif //assert(false); //FIXME: Enable assert! no idea what this reg does break; case NV1BA0_PIO_SET_CURRENT_OUTBUF_SGE: