From 273af66025e8cc6982febfb4a74a8d9106a92440 Mon Sep 17 00:00:00 2001 From: ths Date: Mon, 29 Oct 2007 14:39:49 +0000 Subject: Adjust s390 addresses (the MSB is defined as "to be ignored"). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3486 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-i386/helper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'target-i386') diff --git a/target-i386/helper.c b/target-i386/helper.c index 88aa82e42a..bb927f673d 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -3865,7 +3865,11 @@ void update_fp_status(void) #if !defined(CONFIG_USER_ONLY) #define MMUSUFFIX _mmu -#define GETPC() (__builtin_return_address(0)) +#ifdef __s390__ +# define GETPC() ((void*)((unsigned long)__builtin_return_address(0) & 0x7fffffffUL)) +#else +# define GETPC() (__builtin_return_address(0)) +#endif #define SHIFT 0 #include "softmmu_template.h" -- cgit v1.2.3