]> git.proxmox.com Git - mirror_qemu.git/commit
target/mips: reimplement SC instruction emulation and use cmpxchg
authorLeon Alrae <leon.alrae@imgtec.com>
Mon, 11 Feb 2019 15:09:23 +0000 (16:09 +0100)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Thu, 14 Feb 2019 16:47:28 +0000 (17:47 +0100)
commit33a07fa2db66376e6ee780d4a8b064dc5118cf34
tree67abf3dfc5fb163e7437f697480eeccb489cf536
parentc7c7e1e9a5e3f0a8a1dbff6e4ccfd21c2dc9f845
target/mips: reimplement SC instruction emulation and use cmpxchg

Completely rewrite conditional stores handling. Use cmpxchg.

This eliminates need for separate implementations of SC instruction
emulation for user and system emulation.

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Miodrag Dinic <miodrag.dinic@imgtec.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/mips/cpu_loop.c
target/mips/cpu.h
target/mips/helper.c
target/mips/helper.h
target/mips/op_helper.c
target/mips/translate.c