Revision 173d6cfe target-arm/translate.c
b/target-arm/translate.c | ||
---|---|---|
2199 | 2199 |
{ |
2200 | 2200 |
CPUARMState *env; |
2201 | 2201 |
|
2202 |
cpu_exec_init(); |
|
2203 |
|
|
2204 |
env = malloc(sizeof(CPUARMState)); |
|
2202 |
env = qemu_mallocz(sizeof(CPUARMState)); |
|
2205 | 2203 |
if (!env) |
2206 | 2204 |
return NULL; |
2207 |
memset(env, 0, sizeof(CPUARMState)); |
|
2208 |
cpu_single_env = env; |
|
2205 |
cpu_exec_init(env); |
|
2209 | 2206 |
return env; |
2210 | 2207 |
} |
2211 | 2208 |
|
Also available in: Unified diff