From 6b90a455dc185d25a7cdd69b89d7b43cfbd43751 Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Mon, 10 Feb 2020 09:37:40 -0800 Subject: FESVR: Can't read a DM register when DMACTIVE=0 --- fesvr/dtm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fesvr/dtm.cc b/fesvr/dtm.cc index 5409321..46032c3 100644 --- a/fesvr/dtm.cc +++ b/fesvr/dtm.cc @@ -137,7 +137,7 @@ void dtm_t::resume(int hartsel) current_hart = hartsel; if (running) { - write(DMI_DMCONTROL, 0); + write(DMI_DMCONTROL, DMI_DMCONTROL_DMACTIVE); // Read dmstatus to avoid back-to-back writes to dmcontrol. read(DMI_DMSTATUS); } -- cgit v1.1