mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
tcg/ppc[64]: Only define addend load helpers in softmmu case
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
b1aa27c4ea
commit
35f6b5997a
2 changed files with 5 additions and 0 deletions
|
@ -36,11 +36,14 @@ static uint8_t *tb_ret_addr;
|
|||
#endif
|
||||
|
||||
#define FAST_PATH
|
||||
|
||||
#ifdef CONFIG_SOFTMMU
|
||||
#if TARGET_PHYS_ADDR_BITS <= 32
|
||||
#define ADDEND_OFFSET 0
|
||||
#else
|
||||
#define ADDEND_OFFSET 4
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef GUEST_BASE
|
||||
#define GUEST_BASE 0
|
||||
|
|
|
@ -28,11 +28,13 @@ static uint8_t *tb_ret_addr;
|
|||
|
||||
#define FAST_PATH
|
||||
|
||||
#ifdef CONFIG_SOFTMMU
|
||||
#if TARGET_PHYS_ADDR_BITS == 32
|
||||
#define LD_ADDEND LWZ
|
||||
#else
|
||||
#define LD_ADDEND LD
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if TARGET_LONG_BITS == 32
|
||||
#define LD_ADDR LWZU
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue