From: Jianxin Pan Date: Tue, 30 Oct 2018 10:08:09 +0000 (+0800) Subject: aarch64: enable swp software emulation [1/1] X-Git-Tag: khadas-vims-v0.9.6-release~1172 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=336a6425941eba2cda9be568535169642ef08918;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- 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, };