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