aarch64: enable swp software emulation [1/1]
authorJianxin Pan <jianxin.pan@amlogic.com>
Tue, 30 Oct 2018 10:08:09 +0000 (18:08 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 6 Nov 2018 04:22:17 +0000 (21:22 -0700)
PD#IPTV-14

Problem:
3D Benchmark.apk crash

Solution:
Add swp instruction support on armv8

Verify:
local

Change-Id: Ice2bef5c0ef7110b3adb4af811f99d4bfca1e8dc
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
arch/arm64/kernel/armv8_deprecated.c

index 29d2ad8..6499b24 100644 (file)
@@ -454,7 +454,11 @@ static struct undef_hook swp_hooks[] = {
 
 static struct insn_emulation_ops swp_ops = {
        .name = "swp",
+#ifdef CONFIG_AMLOGIC_MODIFY
+       .status = INSN_DEPRECATED,
+#else
        .status = INSN_OBSOLETE,
+#endif
        .hooks = swp_hooks,
        .set_hw_mode = NULL,
 };