summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author MooglyGuy <MooglyGuy@users.noreply.github.com>2023-05-29 01:43:24 +0200
committer Vas Crabb <vas@vastheman.com>2023-05-29 14:13:23 +1000
commit00c0b3501859a6f046b855a9589df3eda1832b32 (patch)
tree3cf19d8c6adaf70c6fbb80c9736658cabeb075fe
parentefdcdb10aebdc4b44ce3e6acda4197382030b6cc (diff)
-cpu/es5510: Avoid calling DESCRIBE_INSTR when not verbose-logging. (#11285) [Ryan Holtz]
-rw-r--r--src/devices/cpu/es5510/es5510.cpp9
1 files 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;