target/m68k: Pass semihosting arg to exit
commit5fae5110eedba1110605c88d96cd4a5f057bfca2
authorKeith Packard <keithp@keithp.com>
Wed, 2 Aug 2023 16:19:12 +0000 (2 09:19 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 24 Apr 2024 22:46:00 +0000 (24 15:46 -0700)
tree46ae4d6e2da6c4378d6975322892f61589dace48
parent7048fc59ef6a9f76693db3bafede6234a3897385
target/m68k: Pass semihosting arg to exit

Instead of using d0 (the semihost function number), use d1 (the
provide exit status).

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20230802161914.395443-2-keithp@keithp.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/m68k/m68k-semi.c