aboutsummaryrefslogtreecommitdiff
path: root/target/mips/helper.h
diff options
context:
space:
mode:
authorLeon Alrae <leon.alrae@imgtec.com>2019-02-11 16:09:23 +0100
committerAleksandar Markovic <amarkovic@wavecomp.com>2019-02-14 17:47:28 +0100
commit33a07fa2db66376e6ee780d4a8b064dc5118cf34 (patch)
tree67abf3dfc5fb163e7437f697480eeccb489cf536 /target/mips/helper.h
parentc7c7e1e9a5e3f0a8a1dbff6e4ccfd21c2dc9f845 (diff)
downloadqemu-33a07fa2db66376e6ee780d4a8b064dc5118cf34.zip
qemu-33a07fa2db66376e6ee780d4a8b064dc5118cf34.tar.gz
qemu-33a07fa2db66376e6ee780d4a8b064dc5118cf34.tar.bz2
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>
Diffstat (limited to 'target/mips/helper.h')
-rw-r--r--target/mips/helper.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/target/mips/helper.h b/target/mips/helper.h
index 8872c46..a6d687e 100644
--- a/target/mips/helper.h
+++ b/target/mips/helper.h
@@ -13,10 +13,8 @@ DEF_HELPER_4(swr, void, env, tl, tl, int)
#ifndef CONFIG_USER_ONLY
DEF_HELPER_3(ll, tl, env, tl, int)
-DEF_HELPER_4(sc, tl, env, tl, tl, int)
#ifdef TARGET_MIPS64
DEF_HELPER_3(lld, tl, env, tl, int)
-DEF_HELPER_4(scd, tl, env, tl, tl, int)
#endif
#endif