]> xenbits.xensource.com Git - qemu-xen.git/commit
target/nios2: Pass semihosting arg to exit
authorKeith Packard <keithp@keithp.com>
Tue, 1 Aug 2023 15:22:45 +0000 (08:22 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 4 Aug 2023 16:14:46 +0000 (19:14 +0300)
commitadef4fe35002e1098570a22d6beb86cd4c431471
treebaec6d4b59194ac2691ad8c19d235b6c4bbb2ae5
parentf8592e94315813c96d46c7654e88caf24ea3fb56
target/nios2: Pass semihosting arg to exit

Instead of using R_ARG0 (the semihost function number), use R_ARG1
(the provided exit status).

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20230801152245.332749-1-keithp@keithp.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit c11d5bdae79a8edaf00dfcb2e49c064a50c67671)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/nios2/nios2-semi.c