aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/target/riscv/riscv-013.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index c6f60b3..74abfc5 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -2431,6 +2431,7 @@ int riscv013_test_compliance(struct target *target) {
// See which bits are actually writable
dmi_write(target, DMI_ABSTRACTAUTO, 0xFFFFFFFF);
uint32_t abstractauto = dmi_read(target, DMI_ABSTRACTAUTO);
+ dmi_write(target, DMI_ABSTRACTAUTO, 0x0);
if (abstractauto > 0) {
testvar = 0;
// TODO: This mechanism only works when you have a reasonable sized progbuf, which is not