Skip to content

Commit 3ed8513

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
riscv: enable DEBUG_FORCE_FUNCTION_ALIGN_64B
Allow to force all function address 64B aligned as it is possible for other architectures. This may be useful when verify if performance bump is caused by function alignment changes. Before commit 1bf18da ("lib/Kconfig.debug: add ARCH dependency for FUNCTION_ALIGN option"), riscv supports enabling the DEBUG_FORCE_FUNCTION_ALIGN_64B option, but after that commit, each arch needs to claim the support explicitly. Signed-off-by: Jisheng Zhang <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 6b289a3 commit 3ed8513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Kconfig.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ config SECTION_MISMATCH_WARN_ONLY
502502

503503
config DEBUG_FORCE_FUNCTION_ALIGN_64B
504504
bool "Force all function address 64B aligned"
505-
depends on EXPERT && (X86_64 || ARM64 || PPC32 || PPC64 || ARC || S390)
505+
depends on EXPERT && (X86_64 || ARM64 || PPC32 || PPC64 || ARC || RISCV || S390)
506506
select FUNCTION_ALIGNMENT_64B
507507
help
508508
There are cases that a commit from one domain changes the function

0 commit comments

Comments
 (0)