target/m68k: Fix semihost lseek offset computation
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 1 Aug 2023 15:45:19 +0000 (16:45 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 1 Aug 2023 21:52:23 +0000 (23:52 +0200)
commit8caaae7319a5f7ca449900c0e6bfcaed78fa3ae2
tree88b695d8deccca2b7afa7c49ad9067beb6b50416
parent71e2dd6aa1bdbac19c661638a4ae91816002ac9e
target/m68k: Fix semihost lseek offset computation

The arguments for deposit64 are (value, start, length, fieldval); this
appears to have thought they were (value, fieldval, start,
length). Reorder the parameters to match the actual function.

Cc: qemu-stable@nongnu.org
Fixes: 950272506d ("target/m68k: Use semihosting/syscalls.h")
Reported-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230801154519.3505531-1-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
target/m68k/m68k-semi.c