From c710f09fb554bfd75e2a7e89ff61a04fa534cbeb Mon Sep 17 00:00:00 2001 From: wangyanwen Date: Tue, 3 Dec 2024 16:07:03 +0800 Subject: [PATCH] src/target/riscv: optimize debug map reg display message Change-Id: Ib0b1255c05fff1a9bfa4b167eb8f15c2116a463e Signed-off-by: wangyanwen --- src/target/riscv/riscv-013.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 5d9264cdf..d537ca282 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -1906,12 +1906,10 @@ static int examine_dm(struct target *target) return result; } - value = nuclei_get_dmcustom(target, 0, i, 0); - LOG_INFO("coreid=%d, 00 : 0x%lx", i, value); - value = nuclei_get_dmcustom(target, 0, i, 16); - LOG_INFO("coreid=%d, 16 : 0x%lx", i, value); - value = nuclei_get_dmcustom(target, 0, i, 32); - LOG_INFO("coreid=%d, 32 : 0x%lx", i, value); + // NOTE: Nuclei added + LOG_INFO("coreid=%d, nuclei debug map reg 00: 0x%lx, 16: 0x%lx, 32: 0x%lx", \ + i, nuclei_get_dmcustom(target, 0, i, 0), nuclei_get_dmcustom(target, 0, i, 16), \ + nuclei_get_dmcustom(target, 0, i, 32)); } LOG_TARGET_DEBUG(target, "Detected %d harts.", dm->hart_count); }