[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 1/7] Move target_words_bigendian() prototype to e
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH v3 1/7] Move target_words_bigendian() prototype to exec-all.h |
Date: |
Wed, 10 Dec 2014 17:26:44 -0200 |
Signed-off-by: Eduardo Habkost <address@hidden>
---
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
- [Qemu-devel] [PATCH v3 0/7] Target-specific unit test support, add unit tests for target-i386/cpu.c code, Eduardo Habkost, 2014/12/10
- [Qemu-devel] [PATCH v3 1/7] Move target_words_bigendian() prototype to exec-all.h,
Eduardo Habkost <=
- [Qemu-devel] [PATCH v3 2/7] tests: Support target-specific unit tests, Eduardo Habkost, 2014/12/10
- [Qemu-devel] [PATCH v3 4/7] tests: Add unit test for X86CPU code, Eduardo Habkost, 2014/12/10
- [Qemu-devel] [PATCH v3 5/7] target-i386: Isolate enabled-by-default features to a separate array, Eduardo Habkost, 2014/12/10
- [Qemu-devel] [PATCH v3 7/7] tests: test-x86-cpu: Add KVM feature bit initialization test, Eduardo Habkost, 2014/12/10
- [Qemu-devel] [PATCH v3 6/7] tests: test-x86-cpu: Add TCG feature bit initialization test, Eduardo Habkost, 2014/12/10
- [Qemu-devel] [PATCH v3 3/7] tests: Make test-x86-cpuid target-specific, Eduardo Habkost, 2014/12/10