]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commitdiff
tci: fix build breakage for target MIPS
authorStefan Weil <sw@weilnetz.de>
Sun, 18 Nov 2012 19:06:19 +0000 (20:06 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 18 Nov 2012 20:37:04 +0000 (20:37 +0000)
commit 5f7319cd introduced GETPC() usage for MIPS, which is currently
not defined when building with --enable-tcg-interpreter. Add MIPS to
the list of targets we selectively define GETPC() for.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
exec-all.h

index 6b3272ab9ef4a7add193cc4e692db08694d947d5..21aacdab503739dfabfb8a632d910356de83af61 100644 (file)
@@ -290,10 +290,11 @@ extern int tb_invalidated_flag;
 /* The return address may point to the start of the next instruction.
    Subtracting one gets us the call instruction itself.  */
 #if defined(CONFIG_TCG_INTERPRETER)
-/* Alpha and SH4 user mode emulations and Softmmu call GETPC().
+/* Softmmu, Alpha, MIPS, SH4 and SPARC user mode emulations call GETPC().
    For all others, GETPC remains undefined (which makes TCI a little faster. */
-# if defined(CONFIG_SOFTMMU) || defined(TARGET_ALPHA) || defined(TARGET_SH4) \
-     || defined(TARGET_SPARC)
+# if defined(CONFIG_SOFTMMU) || \
+    defined(TARGET_ALPHA) || defined(TARGET_MIPS) || \
+    defined(TARGET_SH4) || defined(TARGET_SPARC)
 extern uintptr_t tci_tb_ptr;
 #  define GETPC() tci_tb_ptr
 # endif