ARM64: Force hardware emulation of deprecated instructions.
authorMichael Zoran <mzoran@crowfest.net>
Sat, 11 Feb 2017 09:18:31 +0000 (01:18 -0800)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:32:47 +0000 (11:32 +0000)
arch/arm64/kernel/armv8_deprecated.c

index e459cfd..fc16351 100644 (file)
@@ -539,9 +539,14 @@ static void __init register_insn_emulation(struct insn_emulation *insn)
 
        switch (insn->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);
+#endif
                insn->max = INSN_HW;
                break;
        case INSN_OBSOLETE: