ARM64: Force hardware emulation of deprecated instructions.

This commit is contained in:
Michael Zoran
2017-02-11 01:18:31 -08:00
committed by popcornmix
parent d10980bba5
commit fd9266513d

View File

@@ -179,10 +179,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;