From 19f73abc04a5db98a72fdd9c7beb079016692418 Mon Sep 17 00:00:00 2001 From: allkern Date: Mon, 5 Aug 2024 10:07:17 -0300 Subject: [PATCH] Fix 2 more warnings --- psx/bus.c | 2 +- psx/cpu.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/psx/bus.c b/psx/bus.c index 920d21b..fe1af50 100644 --- a/psx/bus.c +++ b/psx/bus.c @@ -12,7 +12,7 @@ const uint32_t g_psx_bus_region_mask_table[] = { 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)); } diff --git a/psx/cpu.c b/psx/cpu.c index e041d24..72cd8ca 100644 --- a/psx/cpu.c +++ b/psx/cpu.c @@ -1554,10 +1554,6 @@ static inline uint32_t gte_divide(psx_cpu_t* cpu, uint16_t n, uint16_t d) { 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