aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-08-11 15:48:15 -0700
committerGitHub <noreply@github.com>2017-08-11 15:48:15 -0700
commit3151df24e57d9a9148ad3ca6f856e33c2894a48e (patch)
tree09e23fa05674d764629860e68980e2ed3c64ec0a
parent7f746b7c2f27f6271640efaeb2cde86fd1b86957 (diff)
parent2e47be027ce7625fae951107c7b52b527e402503 (diff)
downloadspike-3151df24e57d9a9148ad3ca6f856e33c2894a48e.zip
spike-3151df24e57d9a9148ad3ca6f856e33c2894a48e.tar.gz
spike-3151df24e57d9a9148ad3ca6f856e33c2894a48e.tar.bz2
Merge pull request #119 from riscv/quiet
Turn off debug module debug printfs.
-rw-r--r--riscv/debug_module.cc4
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;