[PATCH 1/2] libgloss: riscv: Fix build for rv64e

Jeff Johnston jjohnstn@redhat.com
Wed Apr 23 15:01:48 GMT 2025


Patches merged.

-- Jeff J.

On Sun, Apr 20, 2025 at 4:39 PM Eric Salem <ericsalem@gmail.com> wrote:

> Update the macro check so that rv64e builds successfully.
>
> Signed-off-by: Eric Salem <ericsalem@gmail.com>
> ---
>  libgloss/riscv/internal_syscall.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libgloss/riscv/internal_syscall.h
> b/libgloss/riscv/internal_syscall.h
> index 080c8c847e04..254880b48b00 100644
> --- a/libgloss/riscv/internal_syscall.h
> +++ b/libgloss/riscv/internal_syscall.h
> @@ -24,7 +24,7 @@ __syscall_error(long a0)
>  static inline long
>  __internal_syscall(long n, int argc, long _a0, long _a1, long _a2, long
> _a3, long _a4, long _a5)
>  {
> -#ifdef __riscv_32e
> +#ifdef __riscv_abi_rve
>    register long syscall_id asm("t0") = n;
>  #else
>    register long syscall_id asm("a7") = n;
> --
> 2.49.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/newlib/attachments/20250423/2c20202e/attachment.htm>


More information about the Newlib mailing list