]> 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>
Thu, 3 Aug 2023 05:26:26 +0000 (08:26 +0300)
commit93b403343305313f44632e64b18fe07e23a68be5
treee2d45e959bde9c0be36e23b161fb3ec246974ea4
parent4d92f848f102c5608faefa196c8b1950e0053a8e
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