Commit bdaf78e09b0ac9257b944ae41653bf1ef1e2336a
1 parent
2bfdab63
Add some missing static qualifiers
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5415 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
8 additions
and
8 deletions
exec.c
| ... | ... | @@ -82,10 +82,10 @@ |
| 82 | 82 | #define TARGET_PHYS_ADDR_SPACE_BITS 32 |
| 83 | 83 | #endif |
| 84 | 84 | |
| 85 | -TranslationBlock *tbs; | |
| 85 | +static TranslationBlock *tbs; | |
| 86 | 86 | int code_gen_max_blocks; |
| 87 | 87 | TranslationBlock *tb_phys_hash[CODE_GEN_PHYS_HASH_SIZE]; |
| 88 | -int nb_tbs; | |
| 88 | +static int nb_tbs; | |
| 89 | 89 | /* any access to the tbs or the page table must use this lock */ |
| 90 | 90 | spinlock_t tb_lock = SPIN_LOCK_UNLOCKED; |
| 91 | 91 | |
| ... | ... | @@ -102,10 +102,10 @@ spinlock_t tb_lock = SPIN_LOCK_UNLOCKED; |
| 102 | 102 | #endif |
| 103 | 103 | |
| 104 | 104 | uint8_t code_gen_prologue[1024] code_gen_section; |
| 105 | -uint8_t *code_gen_buffer; | |
| 106 | -unsigned long code_gen_buffer_size; | |
| 105 | +static uint8_t *code_gen_buffer; | |
| 106 | +static unsigned long code_gen_buffer_size; | |
| 107 | 107 | /* threshold to flush the translated code buffer */ |
| 108 | -unsigned long code_gen_buffer_max_size; | |
| 108 | +static unsigned long code_gen_buffer_max_size; | |
| 109 | 109 | uint8_t *code_gen_ptr; |
| 110 | 110 | |
| 111 | 111 | #if !defined(CONFIG_USER_ONLY) |
| ... | ... | @@ -166,7 +166,7 @@ unsigned long qemu_host_page_mask; |
| 166 | 166 | |
| 167 | 167 | /* XXX: for system emulation, it could just be an array */ |
| 168 | 168 | static PageDesc *l1_map[L1_SIZE]; |
| 169 | -PhysPageDesc **l1_phys_map; | |
| 169 | +static PhysPageDesc **l1_phys_map; | |
| 170 | 170 | |
| 171 | 171 | #if !defined(CONFIG_USER_ONLY) |
| 172 | 172 | static void io_mem_init(void); |
| ... | ... | @@ -637,7 +637,7 @@ static void tb_page_check(void) |
| 637 | 637 | } |
| 638 | 638 | } |
| 639 | 639 | |
| 640 | -void tb_jmp_check(TranslationBlock *tb) | |
| 640 | +static void tb_jmp_check(TranslationBlock *tb) | |
| 641 | 641 | { |
| 642 | 642 | TranslationBlock *tb1; |
| 643 | 643 | unsigned int n1; | ... | ... |
vl.c
| ... | ... | @@ -7359,7 +7359,7 @@ void qemu_bh_delete(QEMUBH *bh) |
| 7359 | 7359 | /***********************************************************/ |
| 7360 | 7360 | /* machine registration */ |
| 7361 | 7361 | |
| 7362 | -QEMUMachine *first_machine = NULL; | |
| 7362 | +static QEMUMachine *first_machine = NULL; | |
| 7363 | 7363 | |
| 7364 | 7364 | int qemu_register_machine(QEMUMachine *m) |
| 7365 | 7365 | { | ... | ... |