[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/5] exec: Make MIN_CODE_GEN_BUFFER_SIZE private to
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 5/5] exec: Make MIN_CODE_GEN_BUFFER_SIZE private to exec.c |
Date: |
Tue, 16 Oct 2012 17:30:14 +1000 |
It is used nowhere else, and the corresponding MAX_CODE_GEN_BUFFER_SIZE
also lives there.
Signed-off-by: Richard Henderson <address@hidden>
---
exec-all.h | 2 --
exec.c | 4 ++++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/exec-all.h b/exec-all.h
index 6516da0..7f29820 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. */
--
1.7.11.7
- [Qemu-devel] [PATCH v4 0/5] Better allocation of code_gen_buffer, Richard Henderson, 2012/10/16
- [Qemu-devel] [PATCH 1/5] exec: Split up and tidy code_gen_buffer, Richard Henderson, 2012/10/16
- [Qemu-devel] [PATCH 3/5] exec: Do not use absolute address hints for code_gen_buffer with -fpie, Richard Henderson, 2012/10/16
- [Qemu-devel] [PATCH 4/5] exec: Allocate code_gen_prologue from code_gen_buffer, Richard Henderson, 2012/10/16
- [Qemu-devel] [PATCH 5/5] exec: Make MIN_CODE_GEN_BUFFER_SIZE private to exec.c,
Richard Henderson <=
- [Qemu-devel] [PATCH 2/5] exec: Don't make DEFAULT_CODE_GEN_BUFFER_SIZE too large, Richard Henderson, 2012/10/16
- Re: [Qemu-devel] [PATCH v4 0/5] Better allocation of code_gen_buffer, Blue Swirl, 2012/10/20