Revision 7267c094 target-mips/translate_init.c

b/target-mips/translate_init.c
535 535

  
536 536
static void mmu_init (CPUMIPSState *env, const mips_def_t *def)
537 537
{
538
    env->tlb = qemu_mallocz(sizeof(CPUMIPSTLBContext));
538
    env->tlb = g_malloc0(sizeof(CPUMIPSTLBContext));
539 539

  
540 540
    switch (def->mmu_type) {
541 541
        case MMU_TYPE_NONE:
......
568 568

  
569 569
static void mvp_init (CPUMIPSState *env, const mips_def_t *def)
570 570
{
571
    env->mvp = qemu_mallocz(sizeof(CPUMIPSMVPContext));
571
    env->mvp = g_malloc0(sizeof(CPUMIPSMVPContext));
572 572

  
573 573
    /* MVPConf1 implemented, TLB sharable, no gating storage support,
574 574
       programmable cache partitioning implemented, number of allocatable

Also available in: Unified diff