From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvvYt-00080U-HL for qemu-devel@nongnu.org; Thu, 08 Oct 2009 12:09:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvvYo-0007sx-NR for qemu-devel@nongnu.org; Thu, 08 Oct 2009 12:09:50 -0400 Received: from [199.232.76.173] (port=59183 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvvYo-0007sK-Bk for qemu-devel@nongnu.org; Thu, 08 Oct 2009 12:09:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40744) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvvYn-0004pK-HL for qemu-devel@nongnu.org; Thu, 08 Oct 2009 12:09:45 -0400 Date: Thu, 8 Oct 2009 18:07:41 +0200 From: "Michael S. Tsirkin" Message-ID: <20091008160741.GB13710@redhat.com> References: <20091008145247.GD12275@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] Re: [PATCH 3/3] qemu: cleanup unused macros in cirrus List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: Anthony Liguori , Avi Kivity , kvm-devel , "qemu-devel@nongnu.org" On Thu, Oct 08, 2009 at 05:24:35PM +0200, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > Cirrus vga has a copy of many PCI macros, > > and it doesn't even use them. Clean up. > > @@ -3248,8 +3213,8 @@ static int pci_cirrus_vga_initfn(PCIDevice *dev) > > /* setup PCI */ > > pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_CIRRUS); > > pci_config_set_device_id(pci_conf, device_id); > > + //pci_conf[0x04] = PCI_COMMAND_IOACCESS | PCI_COMMAND_MEMACCESS; > > If it is wrong as you claim in the other patch, just remove it, or at > least put a comment. Of course. sorry. > > pci_config_set_class(pci_conf, PCI_CLASS_DISPLAY_VGA); > > - pci_conf[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL; > > Did yo;u wanted to remove this one also? Yes, this is the default anyway. > > > > /* setup memory space */ > > /* memory #0 LFB */ > > Nice cleanup for the rest :) > > Later, Juan.