]> git.proxmox.com Git - qemu.git/blobdiff - exec-all.h
tcg/ppc: ld/st optimization
[qemu.git] / exec-all.h
index 898fe2d8628a757e9ed59225adebb680dd3b90b1..94ed613e376fa35d476b1df54d64acbe5af9e40a 100644 (file)
@@ -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