/[qemu]/qemu/target-mips/translate.c
ViewVC logotype

Diff of /qemu/target-mips/translate.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by bellard, Sun Nov 20 10:30:32 2005 UTC revision 1.9 by bellard, Mon Nov 21 23:31:32 2005 UTC
# Line 1694  CPUMIPSState *cpu_mips_init (void) Line 1694  CPUMIPSState *cpu_mips_init (void)
1694  {  {
1695      CPUMIPSState *env;      CPUMIPSState *env;
1696    
     cpu_exec_init();  
1697      env = qemu_mallocz(sizeof(CPUMIPSState));      env = qemu_mallocz(sizeof(CPUMIPSState));
1698      if (!env)      if (!env)
1699          return NULL;          return NULL;
1700        cpu_exec_init(env);
1701      tlb_flush(env, 1);      tlb_flush(env, 1);
1702      /* Minimal init */      /* Minimal init */
1703      env->PC = 0xBFC00000;      env->PC = 0xBFC00000;
# Line 1722  CPUMIPSState *cpu_mips_init (void) Line 1722  CPUMIPSState *cpu_mips_init (void)
1722      env->CP0_Debug = (1 << CP0DB_CNT) | (0x1 << CP0DB_VER);      env->CP0_Debug = (1 << CP0DB_CNT) | (0x1 << CP0DB_VER);
1723      env->CP0_PRid = MIPS_CPU;      env->CP0_PRid = MIPS_CPU;
1724      env->exception_index = EXCP_NONE;      env->exception_index = EXCP_NONE;
   
     cpu_single_env = env;  
   
1725      return env;      return env;
1726  }  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26