From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syirn-0007eQ-8t for qemu-devel@nongnu.org; Tue, 07 Aug 2012 08:26:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Syirj-00050Z-7e for qemu-devel@nongnu.org; Tue, 07 Aug 2012 08:26:31 -0400 Received: from mail-gg0-f173.google.com ([209.85.161.173]:39705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syirj-0004zo-3c for qemu-devel@nongnu.org; Tue, 07 Aug 2012 08:26:27 -0400 Received: by ggna5 with SMTP id a5so223788ggn.4 for ; Tue, 07 Aug 2012 05:26:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1344341985-10065-2-git-send-email-borntraeger@de.ibm.com> References: <1344307320-25094-2-git-send-email-zhlcindy@linux.vnet.ibm.com> <1344341985-10065-2-git-send-email-borntraeger@de.ibm.com> Date: Tue, 7 Aug 2012 13:26:26 +0100 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [RFC/PATCH 1/1] USB code fenced for s390 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: aliguori@us.ibm.com, agraf@suse.de, Li Zhang , qemu-devel@nongnu.org, Jens Freimann , Li Zhang , Eugene Dvurechenski , qemu-ppc@nongnu.org, afaerber@suse.de, david@gibson.dropbear.id.au On 7 August 2012 13:19, Christian Borntraeger wrote: > +#if defined(TARGET_HAS_USB) && (TARGET_HAS_USB == 1) > /* init USB devices */ > if (usb_enabled) { > if (foreach_device_config(DEV_USB, usb_parse) < 0) > exit(1); > } > +#endif Whether there is USB or not is a property of the machine model, not the target CPU architecture, so a TARGET_HAS_USB define is definitely the wrong approach. -- PMM