summaryrefslogtreecommitdiffstats
path: root/loader.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-27 16:13:06 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:21 -0500
commite2542fe2bce6756948dffe2d233d154a9e25bd35 (patch)
tree187b840091116d420116fb2627e48afa25d59563 /loader.c
parentf0667e660720cf2aee4c58716a7a9337bc359a31 (diff)
downloadhqemu-e2542fe2bce6756948dffe2d233d154a9e25bd35.zip
hqemu-e2542fe2bce6756948dffe2d233d154a9e25bd35.tar.gz
rename WORDS_BIGENDIAN to HOST_WORDS_BIGENDIAN
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'loader.c')
-rw-r--r--loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader.c b/loader.c
index b5c5914..0cbcf9c 100644
--- a/loader.c
+++ b/loader.c
@@ -324,7 +324,7 @@ int load_elf(const char *filename, int64_t address_offset,
e_ident[2] != ELFMAG2 ||
e_ident[3] != ELFMAG3)
goto fail;
-#ifdef WORDS_BIGENDIAN
+#ifdef HOST_WORDS_BIGENDIAN
data_order = ELFDATA2MSB;
#else
data_order = ELFDATA2LSB;
@@ -358,7 +358,7 @@ int load_elf(const char *filename, int64_t address_offset,
static void bswap_uboot_header(uboot_image_header_t *hdr)
{
-#ifndef WORDS_BIGENDIAN
+#ifndef HOST_WORDS_BIGENDIAN
bswap32s(&hdr->ih_magic);
bswap32s(&hdr->ih_hcrc);
bswap32s(&hdr->ih_time);
OpenPOWER on IntegriCloud