aboutsummaryrefslogtreecommitdiff
path: root/src/target/riscv/riscv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/riscv/riscv.c')
-rw-r--r--src/target/riscv/riscv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index 484db74..da1ef65 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -710,7 +710,7 @@ static int add_trigger(struct target *target, struct trigger *trigger)
int result = riscv_get_register(target, &tdata1, GDB_REGNO_TDATA1);
if (result != ERROR_OK)
return result;
- int type = get_field(tdata1, MCONTROL_TYPE(riscv_xlen(target)));
+ int type = get_field(tdata1, CSR_MCONTROL_TYPE(riscv_xlen(target)));
result = ERROR_OK;
switch (type) {
@@ -3929,7 +3929,7 @@ int riscv_enumerate_triggers(struct target *target)
if (result != ERROR_OK)
return result;
- int type = get_field(tdata1, MCONTROL_TYPE(riscv_xlen(target)));
+ int type = get_field(tdata1, CSR_MCONTROL_TYPE(riscv_xlen(target)));
if (type == 0)
break;
switch (type) {