Commit bdaf78e0 authored by blueswir1's avatar blueswir1

Add some missing static qualifiers

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5415 c046a42c-6fe2-441c-8c8c-71466251a162
parent 2bfdab63
...@@ -82,10 +82,10 @@ ...@@ -82,10 +82,10 @@
#define TARGET_PHYS_ADDR_SPACE_BITS 32 #define TARGET_PHYS_ADDR_SPACE_BITS 32
#endif #endif
TranslationBlock *tbs; static TranslationBlock *tbs;
int code_gen_max_blocks; int code_gen_max_blocks;
TranslationBlock *tb_phys_hash[CODE_GEN_PHYS_HASH_SIZE]; TranslationBlock *tb_phys_hash[CODE_GEN_PHYS_HASH_SIZE];
int nb_tbs; static int nb_tbs;
/* any access to the tbs or the page table must use this lock */ /* any access to the tbs or the page table must use this lock */
spinlock_t tb_lock = SPIN_LOCK_UNLOCKED; spinlock_t tb_lock = SPIN_LOCK_UNLOCKED;
...@@ -102,10 +102,10 @@ spinlock_t tb_lock = SPIN_LOCK_UNLOCKED; ...@@ -102,10 +102,10 @@ spinlock_t tb_lock = SPIN_LOCK_UNLOCKED;
#endif #endif
uint8_t code_gen_prologue[1024] code_gen_section; uint8_t code_gen_prologue[1024] code_gen_section;
uint8_t *code_gen_buffer; static uint8_t *code_gen_buffer;
unsigned long code_gen_buffer_size; static unsigned long code_gen_buffer_size;
/* threshold to flush the translated code buffer */ /* threshold to flush the translated code buffer */
unsigned long code_gen_buffer_max_size; static unsigned long code_gen_buffer_max_size;
uint8_t *code_gen_ptr; uint8_t *code_gen_ptr;
#if !defined(CONFIG_USER_ONLY) #if !defined(CONFIG_USER_ONLY)
...@@ -166,7 +166,7 @@ unsigned long qemu_host_page_mask; ...@@ -166,7 +166,7 @@ unsigned long qemu_host_page_mask;
/* XXX: for system emulation, it could just be an array */ /* XXX: for system emulation, it could just be an array */
static PageDesc *l1_map[L1_SIZE]; static PageDesc *l1_map[L1_SIZE];
PhysPageDesc **l1_phys_map; static PhysPageDesc **l1_phys_map;
#if !defined(CONFIG_USER_ONLY) #if !defined(CONFIG_USER_ONLY)
static void io_mem_init(void); static void io_mem_init(void);
...@@ -637,7 +637,7 @@ static void tb_page_check(void) ...@@ -637,7 +637,7 @@ static void tb_page_check(void)
} }
} }
void tb_jmp_check(TranslationBlock *tb) static void tb_jmp_check(TranslationBlock *tb)
{ {
TranslationBlock *tb1; TranslationBlock *tb1;
unsigned int n1; unsigned int n1;
......
...@@ -7359,7 +7359,7 @@ void qemu_bh_delete(QEMUBH *bh) ...@@ -7359,7 +7359,7 @@ void qemu_bh_delete(QEMUBH *bh)
/***********************************************************/ /***********************************************************/
/* machine registration */ /* machine registration */
QEMUMachine *first_machine = NULL; static QEMUMachine *first_machine = NULL;
int qemu_register_machine(QEMUMachine *m) int qemu_register_machine(QEMUMachine *m)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment