Skip to contentSkip to conversation

qemu-tech.texi: Update default code cache size

PATCH Applied 陳韋任 2 participants 6 messages Nov 4, 2011 – Nov 8, 2011

lore
Share & tools
lore

陳韋任

author
#0 lore raw

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
index 397b070..62afe45 100644
@@ -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
#1 lore raw
Quoted 6 lines · 陳韋任

Update the document since the default code cache size is 32 MB now.

---
 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

author
#2 lore raw
Quoted 8 lines
Quoted 6 lines

Update the document since the default code cache size is 32 MB now.

---
 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
#3 lore raw
Quoted 9 lines · 陳韋任
Quoted 8 lines
Quoted 6 lines

Update the document since the default code cache size is 32 MB now.

---
 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
static uint8_t static_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

author
#4 lore raw
In reply to Stefan Hajnoczi
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