Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7xfq-0002dB-NC for qemu-devel@nongnu.org; Tue, 10 Nov 2009 15:50:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7xfm-0002Ws-QB for qemu-devel@nongnu.org; Tue, 10 Nov 2009 15:50:43 -0500 Received: from [199.232.76.173] (port=36951 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7xfm-0002WM-Gr for qemu-devel@nongnu.org; Tue, 10 Nov 2009 15:50:42 -0500 Received: from hall.aurel32.net ([88.191.82.174]:60242) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N7xfl-0005B7-QO for qemu-devel@nongnu.org; Tue, 10 Nov 2009 15:50:42 -0500 Received: from aurel32 by hall.aurel32.net with local (Exim 4.69) (envelope-from ) id 1N7xfk-0000Xd-0y for qemu-devel@nongnu.org; Tue, 10 Nov 2009 21:50:40 +0100 Date: Tue, 10 Nov 2009 21:50:40 +0100 From: Aurelien Jarno Message-ID: <20091110205040.GF9052@hall.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Sender: Aurelien Jarno Subject: [Qemu-devel] arm, mips and mipsel broken List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Please note that at least qemu-system-arm, qemu-system-mips and qemu-system-mipsel are broken by this commit: commit c169998802505c244b8bcad562633f29de7d74a4 Author: Glauber Costa Date: Thu Nov 5 16:05:15 2009 -0200 v3: don't call reset functions on cpu initialization There is absolutely no need to call reset functions when initializing devices. Since we are already registering them, calling qemu_system_reset() should suffice. Actually, it is what happens when we reboot the machine, and using the same process instead of a special case semantics will even allow us to find bugs easier. Furthermore, the fact that we initialize things like the cpu quite early, leads to the need to introduce synchronization stuff like qemu_system_cond. This patch removes it entirely. All we need to do is call qemu_system_reset() only when we're already sure the system is up and running I tested it with qemu (with and without io-thread) and qemu-kvm, and it seems to be doing okay - although qemu-kvm uses a slightly different patch. [ v2: user mode still needs cpu_reset, so put it in ifdef. ] [ v3: leave qemu_system_cond for now. ] Signed-off-by: Glauber Costa Signed-off-by: Blue Swirl -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net