Make priv readable in 0.11.
This commit is contained in:
parent
1083352576
commit
6795270a8e
|
@ -1311,6 +1311,8 @@ static int register_get(struct reg *reg)
|
||||||
if (cache_write(target, 4, true) != ERROR_OK) {
|
if (cache_write(target, 4, true) != ERROR_OK) {
|
||||||
return ERROR_FAIL;
|
return ERROR_FAIL;
|
||||||
}
|
}
|
||||||
|
} else if (reg->number == GDB_REGNO_PRIV) {
|
||||||
|
value = get_field(info->dcsr, DCSR_PRV);
|
||||||
} else {
|
} else {
|
||||||
if (register_read(target, &value, reg->number) != ERROR_OK)
|
if (register_read(target, &value, reg->number) != ERROR_OK)
|
||||||
return ERROR_FAIL;
|
return ERROR_FAIL;
|
||||||
|
|
Loading…
Reference in New Issue