shithub: psxe

Download patch

ref: 19f73abc04a5db98a72fdd9c7beb079016692418
parent: 5916b49c6743cd9b031fe92ae313af9cf409d455
author: allkern <lisandroaalarcon@gmail.com>
date: Mon Aug 5 06:07:17 EDT 2024

Fix 2 more warnings

--- a/psx/bus.c
+++ b/psx/bus.c
@@ -12,7 +12,7 @@
     0x7fffffff, 0x1fffffff, 0xffffffff, 0xffffffff
 };
 
-psx_bus_t* psx_bus_create() {
+psx_bus_t* psx_bus_create(void) {
     return (psx_bus_t*)malloc(sizeof(psx_bus_t));
 }
 
--- a/psx/cpu.c
+++ b/psx/cpu.c
@@ -1554,10 +1554,6 @@
     return MIN(0x1ffff, res);
 }
 
-static inline void psx_gte_i_invalid(psx_cpu_t* cpu) {
-    log_fatal("invalid: Unimplemented GTE instruction %02x, %02x", cpu->opcode & 0x3f, cpu->opcode >> 25);
-}
-
 #define I64(v) ((int64_t)v)
 #define R_TRX cpu->cop2_cr.tr.x
 #define R_TRY cpu->cop2_cr.tr.y
--