summaryrefslogtreecommitdiffstats
path: root/tcg/tci
diff options
context:
space:
mode:
authorRichard Henderson2013-08-20 23:41:29 +0200
committerRichard Henderson2013-09-02 18:08:29 +0200
commit78cd7b835e13bee4416782b6ed41e9bef76e3cfc (patch)
tree72df31f9f5507454d5f9a3e10ada1498f105516d /tcg/tci
parenttcg: Fix next_tb type in cpu_exec (diff)
downloadqemu-78cd7b835e13bee4416782b6ed41e9bef76e3cfc.tar.gz
qemu-78cd7b835e13bee4416782b6ed41e9bef76e3cfc.tar.xz
qemu-78cd7b835e13bee4416782b6ed41e9bef76e3cfc.zip
tcg: Allow TCG_TARGET_REG_BITS to be specified independantly
There are several hosts for which it would be useful to use the available 64-bit registers in a 32-bit pointer environment. Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/tci')
-rw-r--r--tcg/tci/tcg-target.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tcg/tci/tcg-target.h b/tcg/tci/tcg-target.h
index 02e0da1304..c2ecfbe047 100644
--- a/tcg/tci/tcg-target.h
+++ b/tcg/tci/tcg-target.h
@@ -44,6 +44,14 @@
#define TCG_TARGET_INTERPRETER 1
+#if UINTPTR_MAX == UINT32_MAX
+# define TCG_TARGET_REG_BITS 32
+#elif UINTPTR_MAX == UINT64_MAX
+# define TCG_TARGET_REG_BITS 64
+#else
+# error Unknown pointer size for tci target
+#endif
+
#ifdef CONFIG_DEBUG_TCG
/* Enable debug output. */
#define CONFIG_DEBUG_TCG_INTERPRETER