]> git.proxmox.com Git - qemu.git/commitdiff
tci: fix build breakage for target-sparc
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 8 Oct 2012 20:45:49 +0000 (15:45 -0500)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 19 Oct 2012 18:38:29 +0000 (20:38 +0200)
commit c28ae41 introduced GETPC() usage for sparc, which is currently
not defined when building with --enable-tcg-interpreter. Add sparc to
the list of targets we selectively define GETPC() for.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
exec-all.h

index 6516da071d2a0fb653b72239e5e4774c1f07eb48..f7f649ee6160bc5c3d24b51f221424a503fe99e2 100644 (file)
@@ -296,7 +296,8 @@ extern int tb_invalidated_flag;
 #if defined(CONFIG_TCG_INTERPRETER)
 /* Alpha and SH4 user mode emulations and Softmmu call GETPC().
    For all others, GETPC remains undefined (which makes TCI a little faster. */
-# if defined(CONFIG_SOFTMMU) || defined(TARGET_ALPHA) || defined(TARGET_SH4)
+# if defined(CONFIG_SOFTMMU) || defined(TARGET_ALPHA) || defined(TARGET_SH4) \
+     || defined(TARGET_SPARC)
 extern uintptr_t tci_tb_ptr;
 #  define GETPC() tci_tb_ptr
 # endif