From 992f48a036cccf7101e31bf3e5d901ce5320e886 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sun, 14 Oct 2007 16:27:31 +0000 Subject: Support for 32 bit ABI on 64 bit targets (only enabled Sparc64) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3396 c046a42c-6fe2-441c-8c8c-71466251a162 --- thunk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'thunk.c') diff --git a/thunk.c b/thunk.c index dbeb2b1fc1..0347d6d049 100644 --- a/thunk.c +++ b/thunk.c @@ -136,13 +136,13 @@ const argtype *thunk_convert(void *dst, const void *src, case TYPE_ULONGLONG: *(uint64_t *)dst = tswap64(*(uint64_t *)src); break; -#if HOST_LONG_BITS == 32 && TARGET_LONG_BITS == 32 +#if HOST_LONG_BITS == 32 && TARGET_ABI_BITS == 32 case TYPE_LONG: case TYPE_ULONG: case TYPE_PTRVOID: *(uint32_t *)dst = tswap32(*(uint32_t *)src); break; -#elif HOST_LONG_BITS == 64 && TARGET_LONG_BITS == 32 +#elif HOST_LONG_BITS == 64 && TARGET_ABI_BITS == 32 case TYPE_LONG: case TYPE_ULONG: case TYPE_PTRVOID: -- cgit v1.2.1