summaryrefslogtreecommitdiffstats
path: root/tcg/hppa
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-08-20 14:41:29 -0700
committerRichard Henderson <rth@twiddle.net>2013-09-02 09:08:29 -0700
commit78cd7b835e13bee4416782b6ed41e9bef76e3cfc (patch)
tree72df31f9f5507454d5f9a3e10ada1498f105516d /tcg/hppa
parent3e9bd63acf145bb2d3da277ee85167878ade53bd (diff)
downloadhqemu-78cd7b835e13bee4416782b6ed41e9bef76e3cfc.zip
hqemu-78cd7b835e13bee4416782b6ed41e9bef76e3cfc.tar.gz
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/hppa')
-rw-r--r--tcg/hppa/tcg-target.c4
-rw-r--r--tcg/hppa/tcg-target.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/tcg/hppa/tcg-target.c b/tcg/hppa/tcg-target.c
index 68f77ba..e5aed91 100644
--- a/tcg/hppa/tcg-target.c
+++ b/tcg/hppa/tcg-target.c
@@ -22,6 +22,10 @@
* THE SOFTWARE.
*/
+#if TCG_TARGET_REG_BITS != 32
+#error unsupported
+#endif
+
#ifndef NDEBUG
static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
"%r0", "%r1", "%rp", "%r3", "%r4", "%r5", "%r6", "%r7",
diff --git a/tcg/hppa/tcg-target.h b/tcg/hppa/tcg-target.h
index be5895f..122edce 100644
--- a/tcg/hppa/tcg-target.h
+++ b/tcg/hppa/tcg-target.h
@@ -25,10 +25,6 @@
#ifndef TCG_TARGET_HPPA
#define TCG_TARGET_HPPA 1
-#if TCG_TARGET_REG_BITS != 32
-#error unsupported
-#endif
-
#define TCG_TARGET_WORDS_BIGENDIAN
#define TCG_TARGET_NB_REGS 32
OpenPOWER on IntegriCloud