summaryrefslogtreecommitdiffstats
path: root/target-m68k
diff options
context:
space:
mode:
authorths2007-10-29 15:39:49 +0100
committerths2007-10-29 15:39:49 +0100
commit273af66025e8cc6982febfb4a74a8d9106a92440 (patch)
tree9e82d63fb3e399c63db425ab6908ce71001bade9 /target-m68k
parentAdd a qemu_irq_invert() shortcut for inverting a signal. (diff)
downloadqemu-273af66025e8cc6982febfb4a74a8d9106a92440.tar.gz
qemu-273af66025e8cc6982febfb4a74a8d9106a92440.tar.xz
qemu-273af66025e8cc6982febfb4a74a8d9106a92440.zip
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
Diffstat (limited to 'target-m68k')
-rw-r--r--target-m68k/op_helper.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/target-m68k/op_helper.c b/target-m68k/op_helper.c
index 917ef52880..80ec89040f 100644
--- a/target-m68k/op_helper.c
+++ b/target-m68k/op_helper.c
@@ -31,7 +31,11 @@ void do_interrupt(int is_hw)
extern int semihosting_enabled;
#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"