提交 a32ff1ad 编写于 作者: J j_mayer

PowerPC user-mode fix: MSR is now entirelly set-up in the cpu_reset routine.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3457 c046a42c-6fe2-441c-8c8c-71466251a162
上级 8378e71f
......@@ -329,7 +329,6 @@ static inline void init_thread(struct target_pt_regs *_regs, struct image_info *
abi_ulong entry, toc;
#endif
_regs->msr = 1 << MSR_PR; /* Set user mode */
_regs->gpr[1] = infop->start_stack;
#if defined(TARGET_PPC64) && !defined(TARGET_ABI32)
entry = ldq_raw(infop->entry) + infop->load_addr;
......
......@@ -2168,7 +2168,6 @@ int main(int argc, char **argv)
}
cpu_ppc_register(env, def);
cpu_ppc_reset(env);
env->msr = regs->msr & ~((1 << 6) | (1 << 12) | (1 << 13));
#if defined(TARGET_PPC64)
#if defined(TARGET_ABI32)
env->msr &= ~((target_ulong)1 << MSR_SF);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册