openocd/src
Antonio Borneo 036de3b482 riscv: replace macro DIM() with ARRAY_SIZE()
OpenOCD already defines the macro ARRAY_SIZE, while riscv code
uses a local macro DIM.

Prefer using the macro ARRAY_SIZE() instead of DIM().
Not all the riscv code has been upstreamed, yes; this patch only
covers the code already upstreamed.

Change-Id: I89a58a6d91916d85c53ba5e4091b558271f8d618
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6258
Reviewed-by: Xiang W <wxjstz@126.com>
Tested-by: jenkins
Reviewed-by: Tim Newsome <tim@sifive.com>
2021-05-22 10:11:41 +01:00
..
flash flash: fix some minor typo 2021-05-22 10:06:32 +01:00
helper helper/command: silent debug msg on command register/unregister 2021-05-22 10:10:37 +01:00
jtag jtag: fix some minor typo 2021-05-22 10:06:38 +01:00
pld Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
rtos openocd: fix some minor typo 2021-05-22 10:06:51 +01:00
rtt openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
server server: gdb_server: Add colon for target extended-remote 2021-05-15 20:57:12 +01:00
svf Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
target riscv: replace macro DIM() with ARRAY_SIZE() 2021-05-22 10:11:41 +01:00
transport Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
xsvf openocd: fix some minor typo 2021-05-22 10:06:51 +01:00
hello.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
Makefile.am build: Fix out-of-tree with --disable-dependency-tracking configure flag 2021-04-05 23:24:14 +01:00
openocd.c help: re-implement 'help' independent from tree of struct command 2021-04-18 15:33:54 +01:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00