aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Matyas <50193733+JanMatCodasip@users.noreply.github.com>2024-01-18 09:11:56 +0100
committerGitHub <noreply@github.com>2024-01-18 09:11:56 +0100
commit80f219ae89294e4507da1c71e18454b8a9a8399e (patch)
treebda27f2f6722c1630416175560b6a1c1fb76b799
parente6e9fbe2eb113d44a1f641461b85ad18d933fae9 (diff)
parentb3778e6dfd7704ae333459961bdd476c9e8bc4ac (diff)
downloadriscv-openocd-80f219ae89294e4507da1c71e18454b8a9a8399e.zip
riscv-openocd-80f219ae89294e4507da1c71e18454b8a9a8399e.tar.gz
riscv-openocd-80f219ae89294e4507da1c71e18454b8a9a8399e.tar.bz2
Merge pull request #990 from en-sc/en-sc/dmi-defines
target/riscv: use defined constants in `dmi_*_t` enums (non-functional change)
-rw-r--r--src/target/riscv/riscv-013.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index e012778..31351d7 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -91,14 +91,14 @@ static int set_group(struct target *target, bool *supported, unsigned int group,
/*** JTAG registers. ***/
typedef enum {
- DMI_OP_NOP = 0,
- DMI_OP_READ = 1,
- DMI_OP_WRITE = 2
+ DMI_OP_NOP = DTM_DMI_OP_NOP,
+ DMI_OP_READ = DTM_DMI_OP_READ,
+ DMI_OP_WRITE = DTM_DMI_OP_WRITE
} dmi_op_t;
typedef enum {
- DMI_STATUS_SUCCESS = 0,
- DMI_STATUS_FAILED = 2,
- DMI_STATUS_BUSY = 3
+ DMI_STATUS_SUCCESS = DTM_DMI_OP_SUCCESS,
+ DMI_STATUS_FAILED = DTM_DMI_OP_FAILED,
+ DMI_STATUS_BUSY = DTM_DMI_OP_BUSY
} dmi_status_t;
typedef enum slot {