Nikita Shubin <[email protected]> writes: > The switch from target_ulong to uint64_t broke the mechanism of passing -1 > (0xffffffff) in arg2 to signal validate_strlen() to compute the string > length automatically. For 32‑bit semihosting, detect when arg2 is > 0xffffffff and replace it with 0xffffffffffffffff. This causes an overflow > to zero, restoring the original behavior of automatic length calculation. > > Fixes: 6dfbf9b6cfe ("semihosting/arm-compat-semi: replace target_ulong") > Signed-off-by: Nikita Shubin <[email protected]>
Acked-by: Alex Bennée <[email protected]> -- Alex Bennée Virtualisation Tech Lead @ Linaro
