mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
tcg/ppc: ld/st optimization
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
b51d7b2e10
commit
ed224a56b3
3 changed files with 268 additions and 202 deletions
|
@ -335,6 +335,9 @@ extern uintptr_t tci_tb_ptr;
|
|||
# define GETRA() ((uintptr_t)__builtin_return_address(0))
|
||||
# define GETPC_LDST() ((uintptr_t)(GETRA() + 7 + \
|
||||
*(int32_t *)((void *)GETRA() + 3) - 1))
|
||||
# elif defined (_ARCH_PPC) && !defined (_ARCH_PPC64)
|
||||
# define GETRA() ((uintptr_t)__builtin_return_address(0))
|
||||
# define GETPC_LDST() ((uintptr_t) ((*(int32_t *)(GETRA() + 4)) - 1))
|
||||
# else
|
||||
# error "CONFIG_QEMU_LDST_OPTIMIZATION needs GETPC_LDST() implementation!"
|
||||
# endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue