aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-29 12:29:56 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-29 12:29:56 +0000
commitb2437bf267670890c2919b03bde0fb22eb0eca5f (patch)
treeb8bdae18f2aa5647cf0c4b26750056348a7e66f2
parentdd5d6fe913b458463aecb3abd6dca049e5d5b0c6 (diff)
Add missing static qualifiers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4801 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--target-alpha/translate.c4
-rw-r--r--target-ppc/translate.c2
-rw-r--r--target-sh4/translate.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 4a741573d7..9bf6163e6b 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -43,11 +43,11 @@ struct DisasContext {
uint32_t amask;
};
-TCGv cpu_env;
+static TCGv cpu_env;
#include "gen-icount.h"
-void alpha_translate_init()
+static void alpha_translate_init()
{
static int done_init = 0;
if (done_init)
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index b98ba35bd3..e0c318582c 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -49,7 +49,7 @@ static TCGv cpu_env;
void ppc_translate_init(void)
{
- int done_init = 0;
+ static int done_init = 0;
if (done_init)
return;
cpu_env = tcg_global_reg_new(TCG_TYPE_PTR, TCG_AREG0, "env");
diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index 8e3f324f3e..0a6f4171fd 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -60,7 +60,7 @@ static TCGv cpu_env;
#include "gen-icount.h"
-void sh4_translate_init()
+static void sh4_translate_init()
{
static int done_init = 0;
if (done_init)