lavu/riscv: allow requesting a second extension

This commit is contained in:
Rémi Denis-Courmont 2024-05-07 21:07:43 +03:00
parent 6e77af1c22
commit 89029baebd
1 changed files with 6 additions and 3 deletions

View File

@ -36,13 +36,16 @@
#define HWD
#endif
.macro func sym, ext=
.macro func sym, ext1=, ext2=
.text
.align 2
.option push
.ifnb \ext
.option arch, +\ext
.ifnb \ext1
.option arch, +\ext1
.ifnb \ext2
.option arch, +\ext2
.endif
.endif
.global \sym