From 37278cf2eca9b1496a5d7c0df88fd3519d7e3c25 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 8 Dec 2017 13:51:40 -0800 Subject: [PATCH] Make priv register 8 bits. (It's really only 2 bits, but something wonky happens between gdb and OpenOCD if I make it that size.) Change-Id: I562a65cb0ebe5aa0edcc54c251d0fea0e26f9cb1 --- src/target/riscv/riscv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 46571890b..f1152a34f 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -1883,6 +1883,7 @@ int riscv_init_registers(struct target *target) sprintf(reg_name, "priv"); r->group = "general"; r->feature = &feature_virtual; + r->size = 8; } if (reg_name[0]) { r->name = reg_name;