From: Richard Henderson Date: Tue, 16 Oct 2012 07:30:14 +0000 (+1000) Subject: exec: Make MIN_CODE_GEN_BUFFER_SIZE private to exec.c X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~3260 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74d590c8e930e42832711604ef0ffd7df6bd5873;p=sdk%2Femulator%2Fqemu.git exec: Make MIN_CODE_GEN_BUFFER_SIZE private to exec.c It is used nowhere else, and the corresponding MAX_CODE_GEN_BUFFER_SIZE also lives there. Signed-off-by: Richard Henderson Signed-off-by: Blue Swirl --- diff --git a/exec-all.h b/exec-all.h index f7f649e..16caf49 100644 --- a/exec-all.h +++ b/exec-all.h @@ -121,8 +121,6 @@ static inline void tlb_flush(CPUArchState *env, int flush_global) #define CODE_GEN_PHYS_HASH_BITS 15 #define CODE_GEN_PHYS_HASH_SIZE (1 << CODE_GEN_PHYS_HASH_BITS) -#define MIN_CODE_GEN_BUFFER_SIZE (1024 * 1024) - /* estimated block size for TB allocation */ /* XXX: use a per code average code fragment size and modulate it according to the host CPU */ diff --git a/exec.c b/exec.c index 8958b28..4a86b0f 100644 --- a/exec.c +++ b/exec.c @@ -498,6 +498,10 @@ bool memory_region_is_unassigned(MemoryRegion *mr) # define USE_MMAP #endif +/* Minimum size of the code gen buffer. This number is randomly chosen, + but not so small that we can't have a fair number of TB's live. */ +#define MIN_CODE_GEN_BUFFER_SIZE (1024u * 1024) + /* Maximum size of the code gen buffer we'd like to use. Unless otherwise indicated, this is constrained by the range of direct branches on the host cpu, as used by the TCG implementation of goto_tb. */