[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] target/nios2: Pass semihosting arg to exit
From: |
Peter Maydell |
Subject: |
Re: [PATCH] target/nios2: Pass semihosting arg to exit |
Date: |
Tue, 1 Aug 2023 16:17:02 +0100 |
On Tue, 1 Aug 2023 at 16:10, Keith Packard <keithp@keithp.com> wrote:
>
>
> > says that for HOSTED_EXIT the exit code is in r5,
> > not in a parameter block pointed to by r5. That
> > would imply that the correct change is to use
> > R_ARG1 rather than R_ARG0 here.
>
> Ah, thanks -- I hadn't managed to find the actual standard yet.
Yeah, the closest to a "standard" we have for nios2 is that
I asked the Codesourcery folks to document it in the libgloss
sources and put the URL to it in a comment at the top of
nios2-semi.c, given that there's no official spec and the
original and main guest-side user is libgloss.
m68k is in a similar position only without the URL
in our source file :-)
-- PMM