Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D6gkL-0005SG-W9 for qemu-devel@nongnu.org; Wed, 02 Mar 2005 22:11:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D6gkH-0005PE-VS for qemu-devel@nongnu.org; Wed, 02 Mar 2005 22:11:26 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6gkH-0005PB-Qg for qemu-devel@nongnu.org; Wed, 02 Mar 2005 22:11:25 -0500 Received: from [69.56.188.178] (helo=server01.killobyte.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D6gUb-0006YH-L1 for qemu-devel@nongnu.org; Wed, 02 Mar 2005 21:55:13 -0500 Received: from [12.35.64.42] (helo=[10.210.16.152]) by server01.killobyte.com with esmtp (Exim 4.43) id 1D6gUc-0003re-Bo for qemu-devel@nongnu.org; Wed, 02 Mar 2005 18:55:14 -0800 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: References: Content-Type: multipart/mixed; boundary=Apple-Mail-1-514901831 Message-Id: From: David Still Subject: Re: [Qemu-devel] [Patch] Fix for ppc-softmmu and cocoa video driver Date: Wed, 2 Mar 2005 18:56:43 -0800 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 --Apple-Mail-1-514901831 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed That works *much* better. :) One issue that I found, which is really easy to fix, is that the Cocoa driver'd won't allow you to load disk images other than .img and .iso, which is a far cry from all the image types that QEMU actually supports. Attached is a patch which corrects this by adding cow, qcow, dmg, cloop, and vmdk to the allowable image types (strictly a suffix check). As it is currently written, qemu in cocoa mode will always ask you to select the disk image via the cocoa open file dialog, even if you specified an image from the command-line. Would it be possible to have qemu only open the dialog box if an image was not selected from command-line? - Dave --Apple-Mail-1-514901831 Content-Transfer-Encoding: 7bit Content-Type: text/plain; x-unix-mode=0644; name="cocoa_disk_img_fix.txt" Content-Disposition: attachment; filename=cocoa_disk_img_fix.txt --- cocoa.m.orig Wed Mar 2 15:53:34 2005 +++ cocoa.m Wed Mar 2 15:55:05 2005 @@ -427,7 +427,7 @@ [op setMessage:@"Select the disk image you want to boot.\n\nHit the \"Cancel\" button to quit"]; - [op beginSheetForDirectory:nil file:nil types:[NSArray arrayWithObjects:@"img",@"iso",nil] + [op beginSheetForDirectory:nil file:nil types:[NSArray arrayWithObjects:@"img",@"iso",@"dmg",@"qcow",@"cow",@"cloop",@"vmdk",nil] modalForWindow:window modalDelegate:self didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:) contextInfo:NULL]; } --Apple-Mail-1-514901831 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed . On Mar 2, 2005, at 12:09 PM, Pierre d'Herbemont wrote: > Fabrice, > > Here are two (tiny) fixes for the cocoa video driver. The first one > enables compilation of the ppc-softmmu target with the cocoa driver. > The second removes the following warning: > vl.c:3565: warning: implicit declaration of function > `cocoa_display_init' > > Thanks, > > Pierre. > > ___________________________________________ > ____ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel --Apple-Mail-1-514901831--