]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/nios2: Fix semihost lseek offset computation
authorKeith Packard <keithp@keithp.com>
Mon, 31 Jul 2023 23:52:45 +0000 (16:52 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 4 Aug 2023 16:14:46 +0000 (19:14 +0300)
commit3d81ba8da4e7979fbcafca7a3e4fbda4dd53adbd
treeac29801826562c48f4655a63062292cc4f496e4f
parentadef4fe35002e1098570a22d6beb86cd4c431471
target/nios2: 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.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Fixes: d1e23cbaa403b2d ("target/nios2: Use semihosting/syscalls.h")
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20230731235245.295513-1-keithp@keithp.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit 71e2dd6aa1bdbac19c661638a4ae91816002ac9e)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/nios2/nios2-semi.c