From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EmdQe-0001It-78 for qemu-devel@nongnu.org; Wed, 14 Dec 2005 15:40:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EmdQb-0001F7-W4 for qemu-devel@nongnu.org; Wed, 14 Dec 2005 15:40:47 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmdQb-0001EX-NI for qemu-devel@nongnu.org; Wed, 14 Dec 2005 15:40:45 -0500 Received: from [195.129.94.252] (helo=srv94-252.ip-tech.ch) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EmdSi-00016k-PL for qemu-devel@nongnu.org; Wed, 14 Dec 2005 15:42:57 -0500 Mime-Version: 1.0 (Apple Message framework v748) In-Reply-To: References: <0BE5F4F1-1337-43E6-AD37-ED47FCE3BDCB@stud.tu-ilmenau.de> <0BF839A5-2D32-44FD-9E19-B3EEFA3721E7@kberg.ch> <8B6EFA45-DC47-47FC-91B0-9B5CB41808D2@kberg.ch> <57692F3D-3487-48EB-AA0C-43124745EF3E@stud.tu-ilmenau.de> <2891E47F-E788-4FFD-8FCE-2F9C78C41CDE@kberg.ch> <3C424D8F-05C8-4F06-A1D5-4D37B0F7017D@kberg.ch> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Mike Kronenberg Subject: Re: [Qemu-devel] Mac OS X issues Date: Wed, 14 Dec 2005 18:53:14 +0100 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Sorry, I'm a little in a hurry... The diff is rather big, so just export CVS_RSH="ssh" cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/qemu co -D "20051115" qemu this should check out the last working version. I built it with GCC3 and it was running fine. Mike On 13.12.2005, at 17:33, Joachim Henke wrote: > Thanks for the patch! I already browsed through the CVS history on > savannah, but it's a bit tricky because some code parts moved > between files when SMP support was added. Could you please provide > a complete diff to the last fully working CVS snapshot? According > to your patch, it dates back to September, right? I only looked at > the changes since the beginning of November. > > The GDB output I posted last time was generated after I had removed > some 'inline' statements to find the correct code lines. The > following is the result from unmodified CVS: > > Program received signal EXC_BAD_ACCESS, Could not access memory. > Reason: KERN_PROTECTION_FAILURE at address: 0x00000010 > 0x00062f98 in tb_phys_invalidate (tb=0x8cad00, > page_addr=4294967295) at /Volumes/Data/build/qemu/exec-all.h:249 > 249 { > > This is the path to the crash (each function calling the next one): > > tb_invalidate_phys_page_range() [exec.c] > tb_phys_invalidate() [exec.c] > tb_reset_jump() [exec.c] > tb_set_jmp_target() [exec-all.h] > > According to GDB, qemu crashes in the moment (or shortly after) > when tb_set_jmp_target() is called (line 442, exec.c). As I wrote > in my last post, the crash does not occur when cpu-exec.c is > compiled with GCC4 while everything else is compiled with GCC3. > Compiling only exec.c with GCC4 does not help. Since cpu-exec.c > includes exec-all.h through target-pcc/exec.h this could be a point > to start. > > Already played around changing several pieces of the code - it does > not help - maybe I'm just too blind... > > Regards > Jo. > > > Mike Kronenberg wrote: >> Attached a diff against the last fully working CVS Snapshot I had. >> (ie, before mp was commited) >> >> I'm now scanning thru the changes in exec.c... >> >> my guess is, that things stay as they are, since gcc4 is not a >> target in the near future as stated many times. The GCC4 warnings >> was only added, because there where a lot of annoying posts on the >> list about "can't compile on GCC4". So GCC4 is only a >> workaround :) for now. Thing is, that only qemu-system is working >> when compiled by gcc4, qemu-user not. >> >> Mike > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel