semihosting/arm-compat-semi: eradicate target_long
We use int64_t or int32_t depending on ret size. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20250822150058.18692-11-pierrick.bouvier@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-ID: <20250922093711.2768983-14-alex.bennee@linaro.org>
This commit is contained in:
parent
6dfbf9b6cf
commit
ab385d594c
1 changed files with 5 additions and 2 deletions
|
|
@ -501,10 +501,13 @@ void do_common_semihosting(CPUState *cs)
|
|||
break;
|
||||
|
||||
case TARGET_SYS_ISERROR:
|
||||
{
|
||||
GET_ARG(0);
|
||||
common_semi_set_ret(cs, (target_long)arg0 < 0);
|
||||
bool ret = is_64bit_semihosting(env) ?
|
||||
(int64_t)arg0 < 0 : (int32_t)arg0 < 0;
|
||||
common_semi_set_ret(cs, ret);
|
||||
break;
|
||||
|
||||
}
|
||||
case TARGET_SYS_ISTTY:
|
||||
GET_ARG(0);
|
||||
semihost_sys_isatty(cs, common_semi_istty_cb, arg0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue