Revision c68ea704 target-sparc/translate.c
b/target-sparc/translate.c | ||
---|---|---|
2672 | 2672 |
{ |
2673 | 2673 |
CPUSPARCState *env; |
2674 | 2674 |
|
2675 |
cpu_exec_init(); |
|
2676 |
|
|
2677 |
if (!(env = malloc(sizeof(CPUSPARCState)))) |
|
2678 |
return (NULL); |
|
2679 |
cpu_single_env = env; |
|
2675 |
env = qemu_mallocz(sizeof(CPUSPARCState)); |
|
2676 |
if (!env) |
|
2677 |
return NULL; |
|
2678 |
cpu_exec_init(env); |
|
2680 | 2679 |
cpu_reset(env); |
2681 | 2680 |
return (env); |
2682 | 2681 |
} |
Also available in: Unified diff