mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
cpu_single_env usage fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1644 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
173d6cfe51
commit
c68ea7043f
15 changed files with 129 additions and 88 deletions
|
@ -2672,11 +2672,10 @@ CPUSPARCState *cpu_sparc_init(void)
|
|||
{
|
||||
CPUSPARCState *env;
|
||||
|
||||
cpu_exec_init();
|
||||
|
||||
if (!(env = malloc(sizeof(CPUSPARCState))))
|
||||
return (NULL);
|
||||
cpu_single_env = env;
|
||||
env = qemu_mallocz(sizeof(CPUSPARCState));
|
||||
if (!env)
|
||||
return NULL;
|
||||
cpu_exec_init(env);
|
||||
cpu_reset(env);
|
||||
return (env);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue