From c2f544c4f67fbdd44f71bf4981cf66b7bc3b272c Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 3 Nov 2023 10:47:30 -0700 Subject: [PATCH] target/riscv: gdb_regno_name takes an enum. Otherwise it won't compile for me. Not sure why that doesn't affect the automated builds. Change-Id: Ic66c743e1698c4c0772e5601723cb5c711b4fa5c Signed-off-by: Tim Newsome --- src/target/riscv/riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 3d605c19e1..162e765c5c 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -5539,7 +5539,7 @@ static void init_custom_csr_names(struct target *target) } } -const char *gdb_regno_name(struct target *target, unsigned int regno) +const char *gdb_regno_name(struct target *target, enum gdb_regno regno) { RISCV_INFO(info);