From 336a6425941eba2cda9be568535169642ef08918 Mon Sep 17 00:00:00 2001 From: Jianxin Pan Date: Tue, 30 Oct 2018 18:08:09 +0800 Subject: [PATCH] aarch64: enable swp software emulation [1/1] 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 --- arch/arm64/kernel/armv8_deprecated.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/kernel/armv8_deprecated.c b/arch/arm64/kernel/armv8_deprecated.c index 29d2ad8..6499b24 100644 --- a/arch/arm64/kernel/armv8_deprecated.c +++ b/arch/arm64/kernel/armv8_deprecated.c @@ -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, }; -- 2.7.4