openocd/src/target/riscv
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
..
asm.h Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
batch.c Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
batch.h Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
debug_defines.h Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
encoding.h Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
gdb_regs.h Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
Makefile.am Add RISC-V support. 2018-07-24 13:07:26 +01:00
opcodes.h Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
program.c Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
program.h Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
riscv_semihosting.c semihosting: print the semihosting operation id 2020-11-07 20:50:16 +00:00
riscv-011.c riscv: replace macro DIM() with ARRAY_SIZE() 2021-05-22 10:11:41 +01:00
riscv-013.c riscv: replace macro DIM() with ARRAY_SIZE() 2021-05-22 10:11:41 +01:00
riscv.c riscv: replace macro DIM() with ARRAY_SIZE() 2021-05-22 10:11:41 +01:00
riscv.h target/register: use an array of uint8_t for register's value 2020-12-05 23:18:37 +00:00