diff options
author | Juan Quintela <quintela@redhat.com> | 2009-07-27 16:13:06 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-27 14:09:21 -0500 |
commit | e2542fe2bce6756948dffe2d233d154a9e25bd35 (patch) | |
tree | 187b840091116d420116fb2627e48afa25d59563 /linux-user/arm | |
parent | f0667e660720cf2aee4c58716a7a9337bc359a31 (diff) | |
download | qemu-e2542fe2bce6756948dffe2d233d154a9e25bd35.tar.gz qemu-e2542fe2bce6756948dffe2d233d154a9e25bd35.tar.bz2 qemu-e2542fe2bce6756948dffe2d233d154a9e25bd35.zip |
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 'linux-user/arm')
-rw-r--r-- | linux-user/arm/nwfpe/double_cpdo.c | 4 | ||||
-rw-r--r-- | linux-user/arm/nwfpe/fpa11_cpdt.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/linux-user/arm/nwfpe/double_cpdo.c b/linux-user/arm/nwfpe/double_cpdo.c index b5320c82a3..655a83d0b7 100644 --- a/linux-user/arm/nwfpe/double_cpdo.c +++ b/linux-user/arm/nwfpe/double_cpdo.c @@ -150,7 +150,7 @@ unsigned int DoubleCPDO(const unsigned int opcode) case MNF_CODE: { unsigned int *p = (unsigned int*)&rFm; -#ifdef WORDS_BIGENDIAN +#ifdef HOST_WORDS_BIGENDIAN p[0] ^= 0x80000000; #else p[1] ^= 0x80000000; @@ -162,7 +162,7 @@ unsigned int DoubleCPDO(const unsigned int opcode) case ABS_CODE: { unsigned int *p = (unsigned int*)&rFm; -#ifdef WORDS_BIGENDIAN +#ifdef HOST_WORDS_BIGENDIAN p[0] &= 0x7fffffff; #else p[1] &= 0x7fffffff; diff --git a/linux-user/arm/nwfpe/fpa11_cpdt.c b/linux-user/arm/nwfpe/fpa11_cpdt.c index 76c6dcff39..1c40954023 100644 --- a/linux-user/arm/nwfpe/fpa11_cpdt.c +++ b/linux-user/arm/nwfpe/fpa11_cpdt.c @@ -44,7 +44,7 @@ void loadDouble(const unsigned int Fn, target_ulong addr) unsigned int *p; p = (unsigned int*)&fpa11->fpreg[Fn].fDouble; fpa11->fType[Fn] = typeDouble; -#ifdef WORDS_BIGENDIAN +#ifdef HOST_WORDS_BIGENDIAN /* FIXME - handle failure of get_user() */ get_user_u32(p[0], addr); /* sign & exponent */ get_user_u32(p[1], addr + 4); @@ -147,7 +147,7 @@ void storeDouble(const unsigned int Fn, target_ulong addr) default: val = fpa11->fpreg[Fn].fDouble; } /* FIXME - handle put_user() failures */ -#ifdef WORDS_BIGENDIAN +#ifdef HOST_WORDS_BIGENDIAN put_user_u32(p[0], addr); /* msw */ put_user_u32(p[1], addr + 4); /* lsw */ #else |