summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2012-10-08 15:45:49 -0500
committerAurelien Jarno <aurelien@aurel32.net>2012-10-19 20:38:29 +0200
commit42a159284570b6fbb0b097e18c7590c094a5188c (patch)
treeb486ebc42b465e363df588026bafd5b5d7f7476f
parent1cd0f8ce731574afbf219b7ae2b938f305b77e86 (diff)
downloadfocaccia-qemu-42a159284570b6fbb0b097e18c7590c094a5188c.tar.gz
focaccia-qemu-42a159284570b6fbb0b097e18c7590c094a5188c.zip
tci: fix build breakage for target-sparc
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>
-rw-r--r--exec-all.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec-all.h b/exec-all.h
index 6516da071d..f7f649ee61 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -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