aboutsummaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/bt-hci.c2
-rw-r--r--hw/goldfish_fb.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/hw/bt-hci.c b/hw/bt-hci.c
index a5902b0..7837d9e 100644
--- a/hw/bt-hci.c
+++ b/hw/bt-hci.c
@@ -421,7 +421,7 @@ static void bt_submit_raw_acl(struct bt_piconet_s *net, int length, uint8_t *dat
* be continuously allocated. We do it though, to preserve similar
* behaviour between hosts. Some things, like the BD_ADDR cannot be
* preserved though (for example if a real hci is used). */
-#ifdef WORDS_BIGENDIAN
+#ifdef HOST_WORDS_BIGENDIAN
# define HNDL(raw) bswap16(raw)
#else
# define HNDL(raw) (raw)
diff --git a/hw/goldfish_fb.c b/hw/goldfish_fb.c
index 4a0e335..d092fe4 100644
--- a/hw/goldfish_fb.c
+++ b/hw/goldfish_fb.c
@@ -196,7 +196,7 @@ static void goldfish_fb_update_display(void *opaque)
for (nn = 0; nn < width; nn++) {
unsigned spix = src[nn];
unsigned dpix = dst[nn];
-#if WORDS_BIGENDIAN
+#if HOST_WORDS_BIGENDIAN
spix = ((spix << 8) | (spix >> 8)) & 0xffff;
#else
if (spix != dpix)
@@ -207,7 +207,7 @@ static void goldfish_fb_update_display(void *opaque)
if (nn == width)
continue;
-#if WORDS_BIGENDIAN
+#if HOST_WORDS_BIGENDIAN
for ( ; nn < width; nn++ ) {
unsigned spix = src[nn];
dst[nn] = (uint16_t)((spix << 8) | (spix >> 8));
@@ -229,7 +229,7 @@ static void goldfish_fb_update_display(void *opaque)
uint16_t* src = (uint16_t*) src_line;
uint16_t* dst = (uint16_t*) dst_line;
int len = width*2;
-#if WORDS_BIGENDIAN
+#if HOST_WORDS_BIGENDIAN
int nn;
#endif
int dirty = 0;
@@ -248,7 +248,7 @@ static void goldfish_fb_update_display(void *opaque)
if (!dirty)
continue;
-#if WORDS_BIGENDIAN
+#if HOST_WORDS_BIGENDIAN
for (nn = 0; nn < width; nn++ ) {
unsigned spix = src[nn];
dst[nn] = (uint16_t)((spix << 8) | (spix >> 8));