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
This commit is contained in:
Tim Newsome 2017-12-08 13:51:40 -08:00
parent f341db9f72
commit 37278cf2ec
1 changed files with 1 additions and 0 deletions

View File

@ -1883,6 +1883,7 @@ int riscv_init_registers(struct target *target)
sprintf(reg_name, "priv"); sprintf(reg_name, "priv");
r->group = "general"; r->group = "general";
r->feature = &feature_virtual; r->feature = &feature_virtual;
r->size = 8;
} }
if (reg_name[0]) { if (reg_name[0]) {
r->name = reg_name; r->name = reg_name;