From: Andreas Färber Date: Wed, 10 Jul 2013 16:30:38 +0000 (+0200) Subject: linux-user: Avoid conditional cpu_reset() X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~1543^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=885a73f72b967900296d71c97cc7c560585a9086;p=sdk%2Femulator%2Fqemu.git linux-user: Avoid conditional cpu_reset() Some CPUs reset as part of cpu_init(), some others were reset afterwards, some not at all. While some targets didn't implement a cpu_[state_]reset() function, QOM cpu_reset() is always available. There's nothing wrong with resetting twice on startup, so drop the #ifdef. Suggested-by: Peter Maydell Signed-off-by: Andreas Färber Cc: Eduardo Habkost Signed-off-by: Riku Voipio --- diff --git a/linux-user/main.c b/linux-user/main.c index 5537967..547884c 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -3594,9 +3594,7 @@ int main(int argc, char **argv, char **envp) fprintf(stderr, "Unable to find CPU definition\n"); exit(1); } -#if defined(TARGET_SPARC) || defined(TARGET_PPC) cpu_reset(ENV_GET_CPU(env)); -#endif thread_cpu = ENV_GET_CPU(env);