cdrom: handle fifo overreads
[pcsx_rearmed.git] / plugins / gpulib / gpu.c
index d729091..797431c 100644 (file)
@@ -54,6 +54,7 @@ static noinline void do_cmd_reset(void)
 static noinline void do_reset(void)
 {
   unsigned int i;
+
   do_cmd_reset();
 
   memset(gpu.regs, 0, sizeof(gpu.regs));
@@ -136,14 +137,13 @@ static noinline void get_gpu_info(uint32_t data)
       gpu.gp0 = gpu.ex_regs[data & 7] & 0xfffff;
       break;
     case 0x05:
-    case 0x06:
       gpu.gp0 = gpu.ex_regs[5] & 0x3fffff;
       break;
     case 0x07:
       gpu.gp0 = 2;
       break;
     default:
-      gpu.gp0 = 0;
+      // gpu.gp0 unchanged
       break;
   }
 }