qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] fixup! tcg/mips: Make direct jump patching thread-safe
@ 2016-05-01 21:27 Sergey Fedorov
  2016-05-02 17:36 ` Sergey Fedorov
  0 siblings, 1 reply; 2+ messages in thread
From: Sergey Fedorov @ 2016-05-01 21:27 UTC (permalink / raw)
  To: qemu-devel
  Cc: Sergey Fedorov, Sergey Fedorov, Aurelien Jarno, Richard Henderson

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>
---

 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..b514cd7114d2 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(jmp_addr, deposit32(OPC_J, 0, 26, addr >> 2));
     flush_icache_range(jmp_addr, jmp_addr + 4);
 }
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] fixup! tcg/mips: Make direct jump patching thread-safe
  2016-05-01 21:27 [Qemu-devel] [PATCH] fixup! tcg/mips: Make direct jump patching thread-safe Sergey Fedorov
@ 2016-05-02 17:36 ` Sergey Fedorov
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Fedorov @ 2016-05-02 17:36 UTC (permalink / raw)
  To: Sergey Fedorov, qemu-devel; +Cc: Aurelien Jarno, Richard Henderson

On 02/05/16 00:27, 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>

Please ignore this patch, the correct one is v2.

Kind regards,
Sergey

> ---
>
>  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..b514cd7114d2 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(jmp_addr, deposit32(OPC_J, 0, 26, addr >> 2));
>      flush_icache_range(jmp_addr, jmp_addr + 4);
>  }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-02 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-01 21:27 [Qemu-devel] [PATCH] fixup! tcg/mips: Make direct jump patching thread-safe Sergey Fedorov
2016-05-02 17:36 ` Sergey Fedorov

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).