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
2aeeb5f5f3
commit
5ae107d26f
@@ -540,9 +540,14 @@ static void __init register_insn_emulation(struct insn_emulation *insn)
|
|||||||
|
|
||||||
switch (insn->status) {
|
switch (insn->status) {
|
||||||
case INSN_DEPRECATED:
|
case INSN_DEPRECATED:
|
||||||
|
#if 0
|
||||||
insn->current_mode = INSN_EMULATE;
|
insn->current_mode = INSN_EMULATE;
|
||||||
/* Disable the HW mode if it was turned on at early boot time */
|
/* Disable the HW mode if it was turned on at early boot time */
|
||||||
run_all_cpu_set_hw_mode(insn, false);
|
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;
|
insn->max = INSN_HW;
|
||||||
break;
|
break;
|
||||||
case INSN_OBSOLETE:
|
case INSN_OBSOLETE:
|
||||||
|
|||||||
Reference in New Issue
Block a user