[PATCH 4/4] xilinx: mbv: Disable arch-specific memory functions in SPL

Michal Simek michal.simek at amd.com
Thu Apr 30 14:03:47 CEST 2026


Disable CONFIG_SPL_USE_ARCH_MEMCPY, CONFIG_SPL_USE_ARCH_MEMMOVE, and
CONFIG_SPL_USE_ARCH_MEMSET to use generic C implementations instead
of RISC-V assembly versions. The generic implementations are smaller
for SPL's constrained code size requirements.

   spl/u-boot-spl: all -446 text -446

Signed-off-by: Michal Simek <michal.simek at amd.com>
---

 configs/xilinx_mbv32_defconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configs/xilinx_mbv32_defconfig b/configs/xilinx_mbv32_defconfig
index 9538769f17f8..4f017296f0be 100644
--- a/configs/xilinx_mbv32_defconfig
+++ b/configs/xilinx_mbv32_defconfig
@@ -1,4 +1,7 @@
 CONFIG_RISCV=y
+# CONFIG_SPL_USE_ARCH_MEMCPY is not set
+# CONFIG_SPL_USE_ARCH_MEMMOVE is not set
+# CONFIG_SPL_USE_ARCH_MEMSET is not set
 CONFIG_SYS_MALLOC_LEN=0xe00000
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
-- 
2.43.0

base-commit: 6ada697cef076eaed1971c4877c402a91ad5cb48
branch: debian-sent3


More information about the U-Boot mailing list