mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
ARM64: Force hardware emulation of deprecated instructions.
This commit is contained in:
committed by
popcornmix
parent
d10980bba5
commit
fd9266513d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user