提交 c090a8f4 编写于 作者: T ths

Fix CP0_IntCtl handling.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2645 c046a42c-6fe2-441c-8c8c-71466251a162
上级 c50da3df
......@@ -1374,8 +1374,9 @@ void op_mtc0_status (void)
void op_mtc0_intctl (void)
{
/* vectored interrupts not implemented */
env->CP0_IntCtl = 0;
/* vectored interrupts not implemented, timer on int 7,
no performance counters. */
env->CP0_IntCtl |= T0 & 0x000002e0;
RETURN();
}
......
......@@ -5405,6 +5405,9 @@ void cpu_reset (CPUMIPSState *env)
/* SMP not implemented */
env->CP0_EBase = 0x80000000;
env->CP0_Status = (1 << CP0St_BEV) | (1 << CP0St_ERL);
/* vectored interrupts not implemented, timer on int 7,
no performance counters. */
env->CP0_IntCtl = 0xe0000000;
env->CP0_WatchLo = 0;
env->CP0_WatchHi = 0;
/* Count register increments in debug mode, EJTAG version 1 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册