From: Jessica Clarke <jrtc27@jrtc27.com>
To: opensbi@lists.infradead.org
Cc: Jessica Clarke <jrtc27@jrtc27.com>
Subject: [PATCH 3/3] include: sbi: Remove unused (LOG_)REGBYTES
Date: Thu, 10 Jul 2025 00:29:30 +0100 [thread overview]
Message-ID: <20250709232932.37622-3-jrtc27@jrtc27.com> (raw)
In-Reply-To: <20250709232932.37622-1-jrtc27@jrtc27.com>
These are no longer used, so remove them.
Signed-off-by: Jessica Clarke <jrtc27@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
--
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi
next prev parent reply other threads:[~2025-07-09 23:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-09 23:29 [PATCH 1/3] include: sbi: Use array for struct sbi_trap_regs and GET/SET macros Jessica Clarke
2025-07-09 23:29 ` [PATCH 2/3] firmware: Replace sole uses of REGBYTES with __SIZEOF_LONG__ Jessica Clarke
2025-07-22 10:46 ` Anup Patel
2025-07-09 23:29 ` Jessica Clarke [this message]
2025-07-22 10:47 ` [PATCH 3/3] include: sbi: Remove unused (LOG_)REGBYTES Anup Patel
2025-07-22 10:45 ` [PATCH 1/3] include: sbi: Use array for struct sbi_trap_regs and GET/SET macros Anup Patel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250709232932.37622-3-jrtc27@jrtc27.com \
--to=jrtc27@jrtc27.com \
--cc=opensbi@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox