From 7baa7795ba6b878f1dc859f4d4ee239bb569c750 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 26 Apr 2016 14:32:08 -0700 Subject: gdb can attach and read the PC: (gdb) target remote localhost:1234 Remote debugging using localhost:1234 0x0000000000010178 in fib (n=0) at waste.c:1 1 unsigned int fib(unsigned int n) { (gdb) --- riscv/mmu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'riscv/mmu.h') diff --git a/riscv/mmu.h b/riscv/mmu.h index a87b6af..8fe3043 100644 --- a/riscv/mmu.h +++ b/riscv/mmu.h @@ -117,6 +117,7 @@ public: entry->tag = -1; tracer.trace(paddr, length, FETCH); } + entry->tag = -1; // TODO: this is hack to work around Debug RAM code being cached return entry; } -- cgit v1.1