Parent Directory | Revision Log | Patch
revision 1.24 by bellard, Sun Nov 20 10:32:05 2005 UTC | revision 1.25 by bellard, Mon Nov 21 23:33:12 2005 UTC | |
---|---|---|
# | Line 2672 CPUSPARCState *cpu_sparc_init(void) | Line 2672 CPUSPARCState *cpu_sparc_init(void) |
2672 | { | { |
2673 | CPUSPARCState *env; | CPUSPARCState *env; |
2674 | ||
2675 | cpu_exec_init(); | env = qemu_mallocz(sizeof(CPUSPARCState)); |
2676 | if (!env) | |
2677 | if (!(env = malloc(sizeof(CPUSPARCState)))) | return NULL; |
2678 | return (NULL); | cpu_exec_init(env); |
cpu_single_env = env; | ||
2679 | cpu_reset(env); | cpu_reset(env); |
2680 | return (env); | return (env); |
2681 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |