From 00c0b3501859a6f046b855a9589df3eda1832b32 Mon Sep 17 00:00:00 2001 From: MooglyGuy Date: Mon, 29 May 2023 01:43:24 +0200 Subject: -cpu/es5510: Avoid calling DESCRIBE_INSTR when not verbose-logging. (#11285) [Ryan Holtz] --- src/devices/cpu/es5510/es5510.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/devices/cpu/es5510/es5510.cpp b/src/devices/cpu/es5510/es5510.cpp index ac5ba9f7885..5ffd00a2d9b 100644 --- a/src/devices/cpu/es5510/es5510.cpp +++ b/src/devices/cpu/es5510/es5510.cpp @@ -779,9 +779,12 @@ void es5510_device::execute_run() { } else { // currently running, execute one instruction. - char buf[1024]; - DESCRIBE_INSTR(buf, instr[pc], gpr[pc], nullptr, nullptr, nullptr, nullptr); - LOG_EXEC("EXECUTING %02x: %012x %06x %s\n", pc, instr[pc], gpr[pc]&0xffffff, buf); + if (VERBOSE & LOG_EXECUTION) + { + char buf[1024]; + DESCRIBE_INSTR(buf, instr[pc], gpr[pc], nullptr, nullptr, nullptr, nullptr); + LOG_EXEC("EXECUTING %02x: %012x %06x %s\n", pc, instr[pc], gpr[pc]&0xffffff, buf); + } ram_pp = ram_p; ram_p = ram; -- cgit v1.2.3