mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
ARM64: Force hardware emulation of deprecated instructions.
This commit is contained in:
committed by
Dom Cobley
parent
f1be28e65c
commit
edce04b10b
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user