From f89e137c57d0dd38d48fdae5ff7ee83fe56c9a2e Mon Sep 17 00:00:00 2001 From: arbee Date: Sat, 26 Oct 2024 15:17:31 -0400 Subject: [PATCH] scripts/3rdparty.lua: Enabled -Wno-tautological-compare for BGFX in order to evaluate turning it off for MAME. [R. Belmont] cpu/es5510: Removed hack that never could possibly have worked, comparing a uint8_t to a 24-bit constant. [R. Belmont] --- scripts/src/3rdparty.lua | 1 + src/devices/cpu/es5510/es5510.cpp | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua index 9a86eed9fc8..6851cc085c5 100755 --- a/scripts/src/3rdparty.lua +++ b/scripts/src/3rdparty.lua @@ -1511,6 +1511,7 @@ end "-Wno-unused-but-set-variable", "-Wno-unused-function", "-Wno-unused-variable", + "-Wno-tautological-compare", } configuration { } diff --git a/src/devices/cpu/es5510/es5510.cpp b/src/devices/cpu/es5510/es5510.cpp index 7449f1bc307..03cea0595a7 100644 --- a/src/devices/cpu/es5510/es5510.cpp +++ b/src/devices/cpu/es5510/es5510.cpp @@ -340,16 +340,6 @@ static inline char * DESCRIBE_INSTR(char *s, uint64_t instr, uint32_t gpr, const uint8_t es5510_device::host_r(address_space &space, offs_t offset) { // printf("%06x: DSP read offset %04x (data is %04x)\n",pc(),offset,dsp_ram[offset]); - - // VFX hack (FIXME: this is disgusting) - if (core_stricmp(machine().system().name, "vfx") == 0) - { - if (pc == 0xc091f0) - { - return downcast(space.device()).state_int(M68K_D2); - } - } - switch(offset) { case 0x00: LOG("ES5510: Host Read GPR latch[2]: %02x\n", (gpr_latch >> 16) & 0xff); return (gpr_latch >> 16) & 0xff;