mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
@@ -3882,7 +3882,7 @@ upper() {
|
||||
}
|
||||
|
||||
case "$cpu" in
|
||||
i386|x86_64)
|
||||
i386|x86_64|ppc)
|
||||
echo "CONFIG_QEMU_LDST_OPTIMIZATION=y" >> $config_target_mak
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -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
|
||||
|
||||
+264
-201
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user