mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Declare code_gen_ptr, code_gen_max_blocks 'static'
Both values are only used in exec.c, so there is no need to make them globally available. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
e8637c9013
commit
24ab68ac72
2 changed files with 2 additions and 4 deletions
4
exec.c
4
exec.c
|
@ -80,7 +80,7 @@
|
|||
#define SMC_BITMAP_USE_THRESHOLD 10
|
||||
|
||||
static TranslationBlock *tbs;
|
||||
int code_gen_max_blocks;
|
||||
static int code_gen_max_blocks;
|
||||
TranslationBlock *tb_phys_hash[CODE_GEN_PHYS_HASH_SIZE];
|
||||
static int nb_tbs;
|
||||
/* any access to the tbs or the page table must use this lock */
|
||||
|
@ -107,7 +107,7 @@ static uint8_t *code_gen_buffer;
|
|||
static unsigned long code_gen_buffer_size;
|
||||
/* threshold to flush the translated code buffer */
|
||||
static unsigned long code_gen_buffer_max_size;
|
||||
uint8_t *code_gen_ptr;
|
||||
static uint8_t *code_gen_ptr;
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
int phys_ram_fd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue