]> xenbits.xensource.com Git - qemu-xen.git/commit
target/m68k: Fix semihost lseek offset computation
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 1 Aug 2023 15:45:19 +0000 (16:45 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 4 Aug 2023 16:14:46 +0000 (19:14 +0300)
commit71e05c42cc36d9d678db88583d9ece8be7b2f15c
tree0ed3cbef714eb6b057e494c8451adbdfef8e48d1
parent3d81ba8da4e7979fbcafca7a3e4fbda4dd53adbd
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>
(cherry picked from commit 8caaae7319a5f7ca449900c0e6bfcaed78fa3ae2)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/m68k/m68k-semi.c