Skip to content

Commit 2e3ec74

Browse files
Electron752popcornmix
authored andcommitted
ARM64: Force hardware emulation of deprecated instructions.
1 parent c4751a5 commit 2e3ec74

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎arch/arm64/kernel/armv8_deprecated.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,15 @@ static void __init register_insn_emulation(struct insn_emulation_ops *ops)
182182

183183
switch (ops->status) {
184184
case INSN_DEPRECATED:
185+
#if 0
185186
insn->current_mode = INSN_EMULATE;
186187
/* Disable the HW mode if it was turned on at early boot time */
187188
run_all_cpu_set_hw_mode(insn, false);
189+
#else
190+
insn->current_mode = INSN_HW;
191+
run_all_cpu_set_hw_mode(insn, true);
188192
insn->max = INSN_HW;
193+
#endif
189194
break;
190195
case INSN_OBSOLETE:
191196
insn->current_mode = INSN_UNDEF;

0 commit comments

Comments
 (0)