[PATCH 3/3] include: sbi: Remove unused (LOG_)REGBYTES

Jessica Clarke jrtc27 at jrtc27.com
Wed Jul 9 16:29:30 PDT 2025


These are no longer used, so remove them.

Signed-off-by: Jessica Clarke <jrtc27 at jrtc27.com>
---
 include/sbi/riscv_encoding.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h
index f4df1ae..40a854e 100644
--- a/include/sbi/riscv_encoding.h
+++ b/include/sbi/riscv_encoding.h
@@ -1317,13 +1317,6 @@
 
 #define INSN_LEN(insn)			(INSN_IS_16BIT(insn) ? 2 : 4)
 
-#if __riscv_xlen == 64
-#define LOG_REGBYTES			3
-#else
-#define LOG_REGBYTES			2
-#endif
-#define REGBYTES			(1 << LOG_REGBYTES)
-
 #define SH_VSEW			3
 #define SH_VIEW			12
 #define SH_VD				7
-- 
2.34.1




More information about the opensbi mailing list