[PATCH 3/3] include: sbi: Remove unused (LOG_)REGBYTES
Anup Patel
anup at brainfault.org
Tue Jul 22 03:47:21 PDT 2025
On Thu, Jul 10, 2025 at 4:59 AM Jessica Clarke <jrtc27 at jrtc27.com> wrote:
>
> These are no longer used, so remove them.
>
> Signed-off-by: Jessica Clarke <jrtc27 at jrtc27.com>
LGTM.
Reviewed-by: Anup Patel <anup at brainfault.org>
Applied this patch to the riscv/opensbi repo.
Thanks,
Anup
> ---
> 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
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
More information about the opensbi
mailing list