Skip to contentSkip to conversation

TCG: s390x: Fix compilation breakage

PATCH New Alexander Graf 1 participant 1 message Nov 9, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TCG: s390x: Fix compilation breakage

While we're waiting for a proper fix to the compilation issue with TCGRegs on s390x targets, I would like to have a quick fix in the tree that allows us to build at all. I'd happily remove it again later when we have a real fix.

This patch just #defines TCGReg to int, rendering the target API compatible to the other targets again.

CC Richard Henderson <[email protected]>
CC Stefan Weil <[email protected]>
---
 tcg/s390/tcg-target.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
tcg/s390/tcg-target.c +3 -0
index 4967f17..2ac7421 100644
@@ -24,6 +24,9 @@
  * THE SOFTWARE.
  */
 
+/* XXX hack to make us compatible to external defines for now */
+#define TCGReg int
+
 /* ??? The translation blocks produced by TCG are generally small enough to
    be entirely reachable with a 16-bit displacement.  Leaving the option for
    a 32-bit displacement here Just In Case.  */
Signature · 1 line
1.6.0.2