summaryrefslogtreecommitdiffstats
path: root/tcg/ppc64/tcg-target.c
diff options
context:
space:
mode:
authorblueswir12008-10-05 11:59:14 +0200
committerblueswir12008-10-05 11:59:14 +0200
commitd4a9eb1fc6fff9346963ef67629d1b232f01789c (patch)
treed450912d576fcdbb5a68baf1d808441939cf8e3a /tcg/ppc64/tcg-target.c
parentVariable logfilename is not used outside exec.c (diff)
downloadqemu-d4a9eb1fc6fff9346963ef67629d1b232f01789c.tar.gz
qemu-d4a9eb1fc6fff9346963ef67629d1b232f01789c.tar.xz
qemu-d4a9eb1fc6fff9346963ef67629d1b232f01789c.zip
Add some missing static and const qualifiers, reg_names only used if NDEBUG set
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5421 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/ppc64/tcg-target.c')
-rw-r--r--tcg/ppc64/tcg-target.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c
index ff10c37fd7..4943514b02 100644
--- a/tcg/ppc64/tcg-target.c
+++ b/tcg/ppc64/tcg-target.c
@@ -42,6 +42,7 @@ static uint8_t *tb_ret_addr;
#define CMP_L (1<<21)
#endif
+#ifndef NDEBUG
static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
"r0",
"r1",
@@ -76,6 +77,7 @@ static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
"r30",
"r31"
};
+#endif
static const int tcg_target_reg_alloc_order[] = {
TCG_REG_R14,