Revision 7267c094 target-sh4/translate.c

b/target-sh4/translate.c
279 279
    def = cpu_sh4_find_by_name(cpu_model);
280 280
    if (!def)
281 281
	return NULL;
282
    env = qemu_mallocz(sizeof(CPUSH4State));
282
    env = g_malloc0(sizeof(CPUSH4State));
283 283
    env->features = def->features;
284 284
    cpu_exec_init(env);
285 285
    env->movcal_backup_tail = &(env->movcal_backup);

Also available in: Unified diff