fixup! tcg/mips: Make direct jump patching thread-safe
PATCH v2 1/1 fixup! tcg/mips: Make direct jump patching thread-safe
From: Sergey Fedorov <[email protected]>
Signed-off-by Sergey Fedorov <[email protected]>
Signed-off-by Sergey Fedorov <[email protected]>
---
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(-)
tcg/mips/tcg-target.inc.c +1 -1
@@ -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 ); }
Signature · 1 line
1.9.1
Quoted 23 lines · Sergey Fedorov
From: Sergey Fedorov <[email protected]>
Signed-off-by Sergey Fedorov <[email protected]>Signed-off-by Sergey Fedorov <[email protected]>---
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-nexttcg/mips/tcg-target.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tcg/mips/tcg-target.inc.c +0
-0
tcg/mips/tcg-target.inc.c static void tcg_target_init(TCGContext *s) · line 1890
Quoted 7 lines
tcg/mips/tcg-target.inc.c +1
-1@@ -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.