b5db0476552612f27b5605e4a5d647e8e42ee5eb
[oweals/openwrt.git] /
1 From 8e4c9f6bf61c397d57c04ff788f6bf829ab0e71d Mon Sep 17 00:00:00 2001
2 From: Michael Zoran <mzoran@crowfest.net>
3 Date: Sat, 11 Feb 2017 01:18:31 -0800
4 Subject: [PATCH 100/773] ARM64: Force hardware emulation of deprecated
5  instructions.
6
7 ---
8  arch/arm64/kernel/armv8_deprecated.c | 5 +++++
9  1 file changed, 5 insertions(+)
10
11 --- a/arch/arm64/kernel/armv8_deprecated.c
12 +++ b/arch/arm64/kernel/armv8_deprecated.c
13 @@ -182,10 +182,15 @@ static void __init register_insn_emulati
14  
15         switch (ops->status) {
16         case INSN_DEPRECATED:
17 +#if 0
18                 insn->current_mode = INSN_EMULATE;
19                 /* Disable the HW mode if it was turned on at early boot time */
20                 run_all_cpu_set_hw_mode(insn, false);
21 +#else
22 +               insn->current_mode = INSN_HW;
23 +               run_all_cpu_set_hw_mode(insn, true);
24                 insn->max = INSN_HW;
25 +#endif
26                 break;
27         case INSN_OBSOLETE:
28                 insn->current_mode = INSN_UNDEF;