Skip to content

Commit

Permalink
Build fix for gcc-3.3.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5139 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
ths committed Sep 2, 2008
1 parent b991c38 commit f8a6ec5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target-mips/translate_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ void mips_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
}
}

#ifndef CONFIG_USER_ONLY
static void no_mmu_init (CPUMIPSState *env, const mips_def_t *def)
{
env->tlb->nb_tlb = 1;
Expand Down Expand Up @@ -484,6 +485,7 @@ static void mmu_init (CPUMIPSState *env, const mips_def_t *def)
env->CP0_Random = env->tlb->nb_tlb - 1;
env->tlb->tlb_in_use = env->tlb->nb_tlb;
}
#endif /* CONFIG_USER_ONLY */

static void fpu_init (CPUMIPSState *env, const mips_def_t *def)
{
Expand Down Expand Up @@ -566,8 +568,10 @@ static int cpu_mips_register (CPUMIPSState *env, const mips_def_t *def)
env->CP0_SRSConf4 = def->CP0_SRSConf4;
env->insn_flags = def->insn_flags;

#ifndef CONFIG_USER_ONLY
if (!env->user_mode_only)
mmu_init(env, def);
#endif
fpu_init(env, def);
mvp_init(env, def);
return 0;
Expand Down

0 comments on commit f8a6ec5

Please sign in to comment.