Skip to content

Commit e0184e8

Browse files
committed
toolchain: common: Define PERFOPT_ALIGN for OpenRISC
PERFOPT_ALIGN is defined as ".balign 4" because .balign is available in the or1k GNU assembler. Signed-off-by: Joel Holdsworth <[email protected]>
1 parent f3bf635 commit e0184e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/zephyr/toolchain/common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
#define PERFOPT_ALIGN .align 4
8888

8989
#elif defined(CONFIG_NIOS2) || defined(CONFIG_RISCV) || \
90-
defined(CONFIG_XTENSA) || defined(CONFIG_MIPS)
90+
defined(CONFIG_XTENSA) || defined(CONFIG_MIPS) || \
91+
defined(CONFIG_OPENRISC)
9192
#define PERFOPT_ALIGN .balign 4
9293

9394
#elif defined(CONFIG_ARCH_POSIX)

0 commit comments

Comments
 (0)