From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Cc: Laurent Vivier <laurent@vivier.eu>, Keith Packard <keithp@keithp.com>
Subject: Re: [PATCH for-8.1] target/m68k: Fix semihost lseek offset computation
Date: Tue, 1 Aug 2023 20:21:16 +0200 [thread overview]
Message-ID: <839e0cca-346d-f472-294b-955c5f1518d3@linaro.org> (raw)
In-Reply-To: <20230801154519.3505531-1-peter.maydell@linaro.org>
On 1/8/23 17:45, Peter Maydell wrote:
> 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>
> ---
> Same fix for m68k as Keith Packard just sent for nios2
> ---
> target/m68k/m68k-semi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/m68k/m68k-semi.c b/target/m68k/m68k-semi.c
> index 88ad9ba8144..239f6e44e90 100644
> --- a/target/m68k/m68k-semi.c
> +++ b/target/m68k/m68k-semi.c
> @@ -166,7 +166,7 @@ void do_m68k_semihosting(CPUM68KState *env, int nr)
> GET_ARG64(2);
> GET_ARG64(3);
> semihost_sys_lseek(cs, m68k_semi_u64_cb, arg0,
> - deposit64(arg2, arg1, 32, 32), arg3);
> + deposit64(arg2, 32, 32, arg1), arg3);
> break;
>
> case HOSTED_RENAME:
Thanks for writing the fix!
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
next prev parent reply other threads:[~2023-08-01 18:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-01 15:45 [PATCH for-8.1] target/m68k: Fix semihost lseek offset computation Peter Maydell
2023-08-01 18:21 ` Philippe Mathieu-Daudé [this message]
2023-08-01 21:46 ` Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=839e0cca-346d-f472-294b-955c5f1518d3@linaro.org \
--to=philmd@linaro.org \
--cc=keithp@keithp.com \
--cc=laurent@vivier.eu \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).