qemu-tech.texi: Update default code cache size
PATCH 1/1 qemu-tech.texi: Update default code cache size
Update the document since the default code cache size is 32 MB now.
--- qemu-tech.texi | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
qemu-tech.texi +1 -1
@@ -435,7 +435,7 @@ generate an addition for the segment base. @node Translation cache @section Translation cache -A 16 MByte cache holds the most recently used translations. For +A 32 MByte cache holds the most recently used translations. For simplicity, it is completely flushed when it is full. A translation unit contains just a single basic block (a block of x86 instructions terminated by a jump or by a virtual CPU state change which the
Signature · 1 line
1.7.3.5
Quoted 6 lines · 陳韋任
Update the document since the default code cache size is 32 MB now.
Signed-off-by chenwj <[email protected]>--- qemu-tech.texi | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Can you point me to the place in the code where we use 32 MB?
Thanks,
Stefan
Quoted 8 lines
Quoted 6 lines
Update the document since the default code cache size is 32 MB now.
Signed-off-by chenwj <[email protected]>--- qemu-tech.texi | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)Can you point me to the place in the code where we use 32 MB?
In exec.c,
#define DEFAULT_CODE_GEN_BUFFER_SIZE (32 * 1024 * 1024) <--- HERE
#ifdef USE_STATIC_CODE_GEN_BUFFER
static uint8_t static_code_gen_buffer[DEFAULT_CODE_GEN_BUFFER_SIZE]
__attribute__((aligned (CODE_GEN_ALIGN)));
#endif
Regards,
chenwj
Signature · 4 lines
Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667
Quoted 9 lines · 陳韋任
Quoted 8 lines
Quoted 6 lines
Update the document since the default code cache size is 32 MB now.
Signed-off-by chenwj <[email protected]>--- qemu-tech.texi | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)Can you point me to the place in the code where we use 32 MB?
Quoted 8 lines
In
exec.c,#define
DEFAULT_CODE_GEN_BUFFER_SIZE(32 * 1024 * 1024) <--- HERE#ifdef
USE_STATIC_CODE_GEN_BUFFER
staticuint8_tstatic_code_gen_buffer[DEFAULT_CODE_GEN_BUFFER_SIZE]__attribute__((aligned (CODE_GEN_ALIGN)));#endif
Thank you. I don't work on TCG and after a little bit of unsuccessful grepping I figured it would be easiest to ask you :).
Stefan
Stefan Hajnoczi
AppliedQuoted 6 lines · 陳韋任
Update the document since the default code cache size is 32 MB now.
Signed-off-by chenwj <[email protected]>--- qemu-tech.texi | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks, applied to the trivial patches -next tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches-next
Stefan
Quoted 2 lines
Thank you. I don't work on TCG and after a little bit of unsuccessful grepping I figured it would be easiest to ask you :).
You're welcome. :)
Regards,
chenwj
Signature · 4 lines
Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667