ARM64: Force hardware emulation of deprecated instructions.
authorMichael Zoran <mzoran@crowfest.net>
Sat, 11 Feb 2017 09:18:31 +0000 (01:18 -0800)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:07:59 +0000 (00:07 +0100)
arch/arm64/kernel/armv8_deprecated.c

index 92be1d1..70852e9 100644 (file)
@@ -182,10 +182,15 @@ static void __init register_insn_emulation(struct insn_emulation_ops *ops)
 
        switch (ops->status) {
        case INSN_DEPRECATED:
+#if 0
                insn->current_mode = INSN_EMULATE;
                /* Disable the HW mode if it was turned on at early boot time */
                run_all_cpu_set_hw_mode(insn, false);
+#else
+               insn->current_mode = INSN_HW;
+               run_all_cpu_set_hw_mode(insn, true);
                insn->max = INSN_HW;
+#endif
                break;
        case INSN_OBSOLETE:
                insn->current_mode = INSN_UNDEF;