Add missing static qualifiers.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4801 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
pbrook 2008-06-29 12:29:56 +00:00
parent dd5d6fe913
commit b2437bf267
3 changed files with 4 additions and 4 deletions

View File

@ -43,11 +43,11 @@ struct DisasContext {
uint32_t amask; uint32_t amask;
}; };
TCGv cpu_env; static TCGv cpu_env;
#include "gen-icount.h" #include "gen-icount.h"
void alpha_translate_init() static void alpha_translate_init()
{ {
static int done_init = 0; static int done_init = 0;
if (done_init) if (done_init)

View File

@ -49,7 +49,7 @@ static TCGv cpu_env;
void ppc_translate_init(void) void ppc_translate_init(void)
{ {
int done_init = 0; static int done_init = 0;
if (done_init) if (done_init)
return; return;
cpu_env = tcg_global_reg_new(TCG_TYPE_PTR, TCG_AREG0, "env"); cpu_env = tcg_global_reg_new(TCG_TYPE_PTR, TCG_AREG0, "env");

View File

@ -60,7 +60,7 @@ static TCGv cpu_env;
#include "gen-icount.h" #include "gen-icount.h"
void sh4_translate_init() static void sh4_translate_init()
{ {
static int done_init = 0; static int done_init = 0;
if (done_init) if (done_init)