From 4d264b35790f7edaca01f2b2e38664f123138d0d Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Mon, 19 Jun 2017 08:46:02 -0700 Subject: [PATCH] Put early DEBUG notice of XLEN back. --- src/target/riscv/riscv-013.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 21363c94a..f1d4cfbf5 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -1155,6 +1155,11 @@ static int examine(struct target *target) r->xlen[i] = 64; } + /* Display this as early as possible to help people who are using + * really slow simulators. */ + LOG_DEBUG(" hart %d: XLEN=%d, program buffer at 0x%" PRIx64, i, + r->xlen[i], r->debug_buffer_addr[i]); + if (riscv_program_gah(&program64, r->debug_buffer_addr[i])) { LOG_ERROR("This implementation will not work with hart %d with debug_buffer_addr of 0x%lx\n", i, (long)r->debug_buffer_addr[i]);