提交 182b9caa 编写于 作者: Y Yinan Xu

riscv64,init: reset mstatus to 0x0 when init

上级 9cddcc7f
......@@ -18,7 +18,7 @@ void init_isa(void) {
cpu.mode = MODE_M;
#ifndef __DIFF_REF_QEMU__
// QEMU seems to initialize mstatus with 0
mstatus->val = 0x00001800;
mstatus->val = 0x0;
#endif
#define ext(e) (1 << ((e) - 'a'))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册