Commit b2437bf267670890c2919b03bde0fb22eb0eca5f
1 parent
dd5d6fe9
Add missing static qualifiers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4801 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
3 changed files
with
4 additions
and
4 deletions
target-alpha/translate.c
@@ -43,11 +43,11 @@ struct DisasContext { | @@ -43,11 +43,11 @@ struct DisasContext { | ||
43 | uint32_t amask; | 43 | uint32_t amask; |
44 | }; | 44 | }; |
45 | 45 | ||
46 | -TCGv cpu_env; | 46 | +static TCGv cpu_env; |
47 | 47 | ||
48 | #include "gen-icount.h" | 48 | #include "gen-icount.h" |
49 | 49 | ||
50 | -void alpha_translate_init() | 50 | +static void alpha_translate_init() |
51 | { | 51 | { |
52 | static int done_init = 0; | 52 | static int done_init = 0; |
53 | if (done_init) | 53 | if (done_init) |
target-ppc/translate.c
@@ -49,7 +49,7 @@ static TCGv cpu_env; | @@ -49,7 +49,7 @@ static TCGv cpu_env; | ||
49 | 49 | ||
50 | void ppc_translate_init(void) | 50 | void ppc_translate_init(void) |
51 | { | 51 | { |
52 | - int done_init = 0; | 52 | + static int done_init = 0; |
53 | if (done_init) | 53 | if (done_init) |
54 | return; | 54 | return; |
55 | cpu_env = tcg_global_reg_new(TCG_TYPE_PTR, TCG_AREG0, "env"); | 55 | cpu_env = tcg_global_reg_new(TCG_TYPE_PTR, TCG_AREG0, "env"); |
target-sh4/translate.c
@@ -60,7 +60,7 @@ static TCGv cpu_env; | @@ -60,7 +60,7 @@ static TCGv cpu_env; | ||
60 | 60 | ||
61 | #include "gen-icount.h" | 61 | #include "gen-icount.h" |
62 | 62 | ||
63 | -void sh4_translate_init() | 63 | +static void sh4_translate_init() |
64 | { | 64 | { |
65 | static int done_init = 0; | 65 | static int done_init = 0; |
66 | if (done_init) | 66 | if (done_init) |