Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GQ7hl-0003QS-Th for qemu-devel@nongnu.org; Wed, 20 Sep 2006 15:25:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GQ7hi-0003QG-79 for qemu-devel@nongnu.org; Wed, 20 Sep 2006 15:25:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GQ7hi-0003QD-1T for qemu-devel@nongnu.org; Wed, 20 Sep 2006 15:25:54 -0400 Received: from [65.54.246.107] (helo=bay0-omc1-s35.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GQ7l3-0004aM-QF for qemu-devel@nongnu.org; Wed, 20 Sep 2006 15:29:22 -0400 Message-ID: From: "Blue Swirl" Subject: Re: [Qemu-devel] qemu-system-sparc uses all host cpu whiletargetsystem is idle Date: Wed, 20 Sep 2006 21:25:47 +0200 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_7ad_1de8_7918" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aurelien@aurel32.net, fabrice@bellard.org, paul@codesourcery.com Cc: qemu-devel@nongnu.org This is a multi-part message in MIME format. ------=_NextPart_000_7ad_1de8_7918 Content-Type: text/plain; format=flowed >Please find below a patch that "works". It is probably wrong as I wrote it >by copying code from other architectures and trying until it works. Well >I am however convinced of two things: > - "return EXCP_HALTED;" causes the crash. By removing this line qemu > doesn't crash anymore, but the patch does not work as expected > (freeze of the target). > - The interrupt should be cleared, if not the target freeze. > >Now the host CPU is not used at 100% when the Sparc target is idle. I am >using it for about one our with a Debian unstable, and I am writing this >mail from this emulated system. Great work! I can also confirm that it works and CPU is halted correctly. Please apply. _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/ ------=_NextPart_000_7ad_1de8_7918 Content-Type: application/x-bzip; name="slavio_halt.diff.bz2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="slavio_halt.diff.bz2" QlpoOTFBWSZTWUK8nFMAAPr/gHYwJABbb//77+d+xL/v/8tAAfymruzUNJEb UYgGmgAAAAAHqAAAHqBKQjRoIanknogeoaAAGgDQNPSGgB6gyRKeKeptqaE8 iYI09QNMmAAmTRiB6mjRphKaUU9NTxTEYmmgNPUBpoNDEDRoANDRkVgkZJAj PBEYGAHZ2NycnfDAfNd8ogmJssDWjOMwiv0WCqMhmKTmsmQsfugplcKVqoQ2 Q87KwFkcAlW05B+56u5htn2ZoTZpjMNTIjwPa0dcGBZHQbMqEeFeN6kwUwRQ GiDJbsaqUTUhCEXQjvAozlRkaW7JfvWhojZub+KEhdzK0rBRoyAnDSeEYNEM XSFAMD4UhAtTijANRsT4nSwJgfhFRxroR0DOqUJIBQD5sIJr/CacKJXsLe9M Y+1IsLwFZuQnLY1VhFwHx4xhF7vJYYTLW+3gUhkhFvTqQWpBfI2QrJVD/ngU DFIR7krluSIoh0hr5AsJIDA26Q4QhGKJoJyxwsQA4fEFNCUJwAxIAUXcLC+z 8Cc+8pIxAuodkbsyguJ5Z0ltg1xNJWRowbX8u8LBGT6lwPq7KGOUS+DJU+8K RWIZZ6WGS7CXki/Kbt62WrV9ZnEZUlF9J3TClOTPoZGtZbUssUC5vrOReAbU EQFAYVAOt1hSgjaZTBeqArBURYTBVAWKhaJOJ3XEnmiqSAHad5CGYRUI8Ixq kzBEMYD4NJsGcw9hfW8dnmoBEX1dyv1BwF3JFOFCQQrycUw= ------=_NextPart_000_7ad_1de8_7918--