From: Richard Henderson <rth@twiddle.net>
To: Sergey Fedorov <sergey.fedorov@linaro.org>, qemu-devel@nongnu.org
Cc: Sergey Fedorov <serge.fdrv@gmail.com>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH v2] fixup! tcg/mips: Make direct jump patching thread-safe
Date: Mon, 2 May 2016 07:41:02 -1000 [thread overview]
Message-ID: <fc17e097-1566-e6af-5bf0-5b3adaa1b228@twiddle.net> (raw)
In-Reply-To: <1462210518-26522-1-git-send-email-sergey.fedorov@linaro.org>
On 05/02/2016 07:35 AM, Sergey Fedorov wrote:
> From: Sergey Fedorov <serge.fdrv@gmail.com>
>
> Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
> Signed-off-by: Sergey Fedorov <sergey.fedorov@linaro.org>
> ---
>
> This patch is based on a commit:
>
> e601ccb62016 ("cpu-exec: Move TB chaining into tb_find_fast()")
>
> from:
>
> https://github.com/rth7680/qemu.git tcg-next
>
> tcg/mips/tcg-target.inc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c
> index b0440b9c5a79..50e98ea63a73 100644
> --- a/tcg/mips/tcg-target.inc.c
> +++ b/tcg/mips/tcg-target.inc.c
> @@ -1885,6 +1885,6 @@ static void tcg_target_init(TCGContext *s)
>
> void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr)
> {
> - atomic_set(ptr, deposit32(OPC_J, 0, 26, addr >> 2));
> + atomic_set((uint32_t *)jmp_addr, deposit32(OPC_J, 0, 26, addr >> 2));
> flush_icache_range(jmp_addr, jmp_addr + 4);
> }
>
Thanks. Will fix.
prev parent reply other threads:[~2016-05-02 17:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-02 17:35 [Qemu-devel] [PATCH v2] fixup! tcg/mips: Make direct jump patching thread-safe Sergey Fedorov
2016-05-02 17:41 ` Richard Henderson [this message]
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=fc17e097-1566-e6af-5bf0-5b3adaa1b228@twiddle.net \
--to=rth@twiddle.net \
--cc=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
--cc=serge.fdrv@gmail.com \
--cc=sergey.fedorov@linaro.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).