aboutsummaryrefslogtreecommitdiff
path: root/tcg/i386/tcg-target-reg-bits.h
diff options
context:
space:
mode:
Diffstat (limited to 'tcg/i386/tcg-target-reg-bits.h')
-rw-r--r--tcg/i386/tcg-target-reg-bits.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tcg/i386/tcg-target-reg-bits.h b/tcg/i386/tcg-target-reg-bits.h
new file mode 100644
index 0000000000..aa386050eb
--- /dev/null
+++ b/tcg/i386/tcg-target-reg-bits.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Define target-specific register size
+ * Copyright (c) 2008 Fabrice Bellard
+ */
+
+#ifndef TCG_TARGET_REG_BITS_H
+#define TCG_TARGET_REG_BITS_H
+
+#ifdef __x86_64__
+# define TCG_TARGET_REG_BITS 64
+#else
+# define TCG_TARGET_REG_BITS 32
+#endif
+
+#endif