From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xymud-0000NV-Mu for qemu-devel@nongnu.org; Wed, 10 Dec 2014 14:27:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XymuV-0007kX-Fw for qemu-devel@nongnu.org; Wed, 10 Dec 2014 14:27:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XymuV-0007kL-9e for qemu-devel@nongnu.org; Wed, 10 Dec 2014 14:26:55 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBAJQsNF026115 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 10 Dec 2014 14:26:54 -0500 From: Eduardo Habkost Date: Wed, 10 Dec 2014 17:26:44 -0200 Message-Id: <1418239610-3997-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1418239610-3997-1-git-send-email-ehabkost@redhat.com> References: <1418239610-3997-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH v3 1/7] Move target_words_bigendian() prototype to exec-all.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Igor Mammedov Signed-off-by: Eduardo Habkost --- exec.c | 1 - hw/virtio/virtio.c | 1 - include/exec/exec-all.h | 2 ++ 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 71ac104..6666ed5 100644 --- a/exec.c +++ b/exec.c @@ -2845,7 +2845,6 @@ int cpu_memory_rw_debug(CPUState *cpu, target_ulong addr, * A helper function for the _utterly broken_ virtio device model to find out if * it's running on a big endian machine. Don't do this at home kids! */ -bool target_words_bigendian(void); bool target_words_bigendian(void) { #if defined(TARGET_WORDS_BIGENDIAN) diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 013979a..9df248d 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -552,7 +552,6 @@ void virtio_set_status(VirtIODevice *vdev, uint8_t val) vdev->status = val; } -bool target_words_bigendian(void); static enum virtio_device_endian virtio_default_endian(void) { if (target_words_bigendian()) { diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 0844885..d8ca313 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -383,4 +383,6 @@ static inline bool cpu_can_do_io(CPUState *cpu) return cpu->can_do_io != 0; } +bool target_words_bigendian(void); + #endif -- 1.9.3