From 038cf7e8b529ac15af4ee544dfe3f2d5e21c7bda Mon Sep 17 00:00:00 2001 From: kinoe_T Date: Thu, 22 Oct 2020 00:56:23 +0800 Subject: [PATCH] Modify `target_write_u32()` function * Modify `target_write_u32()` function to make integer output easier --- emu-rv32i.c | 1 + 1 file changed, 1 insertion(+) diff --git a/emu-rv32i.c b/emu-rv32i.c index 47b6da4..a163d9b 100644 --- a/emu-rv32i.c +++ b/emu-rv32i.c @@ -878,6 +878,7 @@ int target_write_u32(uint32_t addr, uint32_t val) return 1; } if (addr == MTIMECMP_ADDR) { + printf("%d", val); mtimecmp = (mtimecmp & 0xffffffff00000000ll) | val; mip &= ~MIP_MTIP; } else if (addr == MTIMECMP_ADDR + 4) {