diff options
author | Tim Newsome <tim@sifive.com> | 2017-08-11 15:35:22 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-08-11 15:35:22 -0700 |
commit | 2e47be027ce7625fae951107c7b52b527e402503 (patch) | |
tree | 09e23fa05674d764629860e68980e2ed3c64ec0a | |
parent | 7f746b7c2f27f6271640efaeb2cde86fd1b86957 (diff) | |
download | riscv-isa-sim-2e47be027ce7625fae951107c7b52b527e402503.zip riscv-isa-sim-2e47be027ce7625fae951107c7b52b527e402503.tar.gz riscv-isa-sim-2e47be027ce7625fae951107c7b52b527e402503.tar.bz2 |
Turn off debug module debug printfs.
Nobody wants to see all that, and if they do they should recompile.
-rw-r--r-- | riscv/debug_module.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/debug_module.cc b/riscv/debug_module.cc index d828b72..17ec616 100644 --- a/riscv/debug_module.cc +++ b/riscv/debug_module.cc @@ -8,7 +8,7 @@ #include "debug_rom/debug_rom.h" #include "debug_rom/debug_rom_defines.h" -#if 1 +#if 0 # define D(x) x #else # define D(x) @@ -126,7 +126,7 @@ bool debug_module_t::store(reg_t addr, size_t len, const uint8_t* bytes) } if (addr >= debug_progbuf_start && ((addr + len) <= (debug_progbuf_start + sizeof(program_buffer)))) { - fprintf(stderr, "Successful write to program buffer %d bytes at %x\n", (int) len, (int) addr); + D(fprintf(stderr, "Successful write to program buffer %d bytes at %x\n", (int) len, (int) addr)); memcpy(program_buffer + addr - debug_progbuf_start, bytes, len); return true; |