fix build

This commit is contained in:
starfrost013
2024-12-25 22:24:41 +00:00
parent 86c52e657b
commit a426db8956
2 changed files with 9 additions and 8 deletions

View File

@@ -100,11 +100,11 @@ void nv3_mmio_write32(uint32_t addr, uint32_t val, void* priv)
uint8_t nv3_pci_read(int32_t func, int32_t addr, void* priv)
{
uint8_t ret = 0x00;
// sanity check
if (!nv3)
return;
uint8_t ret = 0x00;
return ret;
// figure out what size this gets read as first
// seems func does not matter at least here?
@@ -436,14 +436,15 @@ void nv3_force_redraw(void* priv)
// Read from SVGA core memory
uint8_t nv3_svga_in(uint16_t addr, void* priv)
{
// sanity check
if (!nv3)
return;
nv3_t* nv3 = (nv3_t*)priv;
uint8_t ret = 0x00;
// sanity check
if (!nv3)
return ret;
// If we need to RMA from GPU MMIO, go do that
if (addr >= NV3_RMA_REGISTER_START
&& addr <= NV3_RMA_REGISTER_END)
@@ -667,7 +668,7 @@ void nv3_update_mappings()
// sanity check
if (!nv3)
return;
// setting this to 0 doesn't seem to disable it, based on the datasheet
nv_log("\nMemory Mapping Config Change:\n");

View File

@@ -54,7 +54,7 @@ uint32_t nv3_mmio_arbitrate_read(uint32_t address)
{
// sanity check
if (!nv3)
return;
return 0x00;
uint32_t ret = 0x00;