]> Git Repo - qemu.git/commitdiff
linux-user: Fix invalid TARGET_ABI_BITS usage on ppc hosts
authorAlexander Graf <[email protected]>
Mon, 30 Apr 2012 22:58:55 +0000 (22:58 +0000)
committerAlexander Graf <[email protected]>
Tue, 1 May 2012 19:47:01 +0000 (21:47 +0200)
When trying to evaluate the size of the _host_ type size for olddev_t,
we need to expose the host's pointer size, not the guest pointer size.

This usage got introduced accidently in commit b754e4fc1.

Fix things by not using TARGET_.*, but rather use host sizeof()
information, which gives us the correct size.

Reported-by: Peter Maydell <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
thunk.h

diff --git a/thunk.h b/thunk.h
index c29576609c5a536a0b8e4838db5c5a0131be76b9..87025c3b04dd91e78008830281fbbced24e133f6 100644 (file)
--- a/thunk.h
+++ b/thunk.h
@@ -113,7 +113,7 @@ static inline int thunk_type_size(const argtype *type_ptr, int is_host)
       defined(HOST_PARISC) || defined(HOST_SPARC64)
             return 4;
 #elif defined(HOST_PPC)
-            return TARGET_ABI_BITS / 8;
+            return sizeof(void *);
 #else
             return 2;
 #endif
This page took 0.022964 seconds and 4 git commands to generate.