mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
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
This commit is contained in:
parent
b50a6563d8
commit
273af66025
@ -1076,7 +1076,11 @@ void helper_mtpr (int iprn)
|
||||
/* Softmmu support */
|
||||
#if !defined (CONFIG_USER_ONLY)
|
||||
|
||||
#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
|
||||
|
||||
/* XXX: the two following helpers are pure hacks.
|
||||
* Hopefully, we emulate the PALcode, then we should never see
|
||||
|
@ -178,7 +178,11 @@ void do_vfp_get_fpscr(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"
|
||||
|
@ -23,7 +23,11 @@
|
||||
#include "exec.h"
|
||||
|
||||
#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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -22,7 +22,11 @@
|
||||
|
||||
#include "host-utils.h"
|
||||
|
||||
#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
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Exceptions processing helpers */
|
||||
|
@ -2732,7 +2732,11 @@ DO_SPE_OP1(fsctuf);
|
||||
#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"
|
||||
|
@ -28,7 +28,11 @@ void do_raise_exception(void)
|
||||
#ifndef 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"
|
||||
|
@ -1680,7 +1680,11 @@ static void do_unaligned_access(target_ulong addr, int is_write, int is_user,
|
||||
|
||||
#define MMUSUFFIX _mmu
|
||||
#define ALIGNED_ONLY
|
||||
#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"
|
||||
|
Loading…
Reference in New Issue
Block a user