shithub: psxe

Download patch

ref: 1c4ab8e5e3d2f7cefb7b097dbe4d6914a02afd07
parent: 8163706a9f348cc0a0aacaa67434b194aacd9ae1
author: allkern <lisandroaalarcon@gmail.com>
date: Fri Sep 15 19:35:29 EDT 2023

Remove unnecessary panics

--- a/psx/bus.c
+++ b/psx/bus.c
@@ -96,7 +96,7 @@
 
     log_fatal("Unhandled 16-bit read from %08x:%08x", vaddr, addr);
 
-    exit(1);
+    // exit(1);
 
     return 0x0000;
 }
--- a/psx/dev/dma.c
+++ b/psx/dev/dma.c
@@ -349,7 +349,7 @@
     if (!size) {
         log_fatal("0 sized SPU DMA");
 
-        exit(1);
+        // exit(1);
     }
 
     dma->spu_irq_delay = size * 4;
--- a/psx/dev/gpu.c
+++ b/psx/dev/gpu.c
@@ -451,6 +451,8 @@
 
             addr %= PSX_GPU_VRAM_SIZE;
 
+            // To-do: This is segfaulting for some reason
+            //        Fix GPU edge cases in general
             gpu->vram[gpu->addr + (gpu->xcnt + (gpu->ycnt * 1024))] = gpu->recv_data & 0xffff;
 
             gpu->xcnt += 1;
--