]> git.proxmox.com Git - qemu.git/blobdiff - tcg/sparc/tcg-target.h
tcg: Allow TCG_TARGET_REG_BITS to be specified independantly
[qemu.git] / tcg / sparc / tcg-target.h
index c0d3abcc7dafd3dcb491d22e59999350b78950ea..2edf858733b4b4fcc18df2f0ce3084261b310746 100644 (file)
 #ifndef TCG_TARGET_SPARC 
 #define TCG_TARGET_SPARC 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 tcg target
+#endif
+
 #define TCG_TARGET_WORDS_BIGENDIAN
 
 #define TCG_TARGET_NB_REGS 32