From patchwork Wed Dec 10 19:26:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 419831 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 17D251400D5 for ; Thu, 11 Dec 2014 06:29:34 +1100 (AEDT) Received: from localhost ([::1]:47564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xymx2-0004Xq-6q for incoming@patchwork.ozlabs.org; Wed, 10 Dec 2014 14:29:32 -0500 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 Received: from localhost (ovpn-113-88.phx2.redhat.com [10.3.113.88]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBAJQrLn024706; Wed, 10 Dec 2014 14:26:54 -0500 From: Eduardo Habkost To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Paolo Bonzini , Igor Mammedov Subject: [Qemu-devel] [PATCH v3 1/7] Move target_words_bigendian() prototype to exec-all.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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