提交 154e93c8 编写于 作者: M Michael Zoran 提交者: Zheng Zengkai

ARM64: Force hardware emulation of deprecated instructions.

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 45607b68
......@@ -182,10 +182,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册