diff options
| author | Pierrick Bouvier <pierrick.bouvier@linaro.org> | 2025-09-22 10:36:52 +0100 |
|---|---|---|
| committer | Alex Bennée <alex.bennee@linaro.org> | 2025-09-26 09:55:19 +0100 |
| commit | a92e151bd0d8c0dedbfb2d301eb31aaac94a1fb8 (patch) | |
| tree | 37b252948b5832e21a9ddeb5e811ba7de04a9fc7 /semihosting | |
| parent | d8028d4ede536bbea82eab8bdebd753378d58b68 (diff) | |
| download | focaccia-qemu-a92e151bd0d8c0dedbfb2d301eb31aaac94a1fb8.tar.gz focaccia-qemu-a92e151bd0d8c0dedbfb2d301eb31aaac94a1fb8.zip | |
semihosting/arm-compat-semi: change common_semi_sys_exit_extended
We now check only is sys_exit is extended. This allows to break dependency to TARGET_SYS_EXIT_EXTENDED which will not be available anymore from this code. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20250822150058.18692-5-pierrick.bouvier@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-ID: <20250922093711.2768983-8-alex.bennee@linaro.org>
Diffstat (limited to 'semihosting')
| -rw-r--r-- | semihosting/arm-compat-semi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/semihosting/arm-compat-semi.c b/semihosting/arm-compat-semi.c index a239cfc5a9..26263a06b7 100644 --- a/semihosting/arm-compat-semi.c +++ b/semihosting/arm-compat-semi.c @@ -755,7 +755,8 @@ void do_common_semihosting(CPUState *cs) { uint32_t ret; - if (common_semi_sys_exit_extended(cs, nr)) { + if (nr == TARGET_SYS_EXIT_EXTENDED || + common_semi_sys_exit_is_extended(cs)) { /* * The A64 version of SYS_EXIT takes a parameter block, * so the application-exit type can return a subcode which |