Patchwork [14/62] tcg-s390: Define tcg_target_reg_names.

login
register
mail settings
Submitter Richard Henderson
Date May 27, 2010, 8:45 p.m.
Message ID <1274993204-30766-15-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/53809/
State New
Headers show

Comments

Richard Henderson - May 27, 2010, 8:45 p.m.
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 tcg/s390/tcg-target.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c
index 2f29728..e0a0e73 100644
--- a/tcg/s390/tcg-target.c
+++ b/tcg/s390/tcg-target.c
@@ -113,6 +113,12 @@ 
 #define S390_INS_MSR   0xb2520000
 #define S390_INS_LARL  0xc000
 
+#ifndef NDEBUG
+static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
+    "%r0", "%r1", "%r2", "%r3", "%r4", "%r5", "%r6", "%r7",
+    "%r8", "%r9", "%r10" "%r11" "%r12" "%r13" "%r14" "%r15"
+};
+#endif
 
 static const int tcg_target_reg_alloc_order[] = {
     TCG_REG_R6,