mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
cpu_exec_init() change
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1643 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
0e1fd3694e
commit
173d6cfe51
4 changed files with 7 additions and 17 deletions
|
@ -1694,10 +1694,10 @@ CPUMIPSState *cpu_mips_init (void)
|
|||
{
|
||||
CPUMIPSState *env;
|
||||
|
||||
cpu_exec_init();
|
||||
env = qemu_mallocz(sizeof(CPUMIPSState));
|
||||
if (!env)
|
||||
return NULL;
|
||||
cpu_exec_init(env);
|
||||
tlb_flush(env, 1);
|
||||
/* Minimal init */
|
||||
env->PC = 0xBFC00000;
|
||||
|
@ -1722,8 +1722,5 @@ CPUMIPSState *cpu_mips_init (void)
|
|||
env->CP0_Debug = (1 << CP0DB_CNT) | (0x1 << CP0DB_VER);
|
||||
env->CP0_PRid = MIPS_CPU;
|
||||
env->exception_index = EXCP_NONE;
|
||||
|
||||
cpu_single_env = env;
|
||||
|
||||
return env;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue