cache the last entry of mapped blocks in memory_mapping() for better performance

This commit is contained in:
Nguyen Anh Quynh
2015-09-04 15:40:47 +08:00
parent fabbc0f4dc
commit d506b900eb
2 changed files with 11 additions and 1 deletions

View File

@ -175,6 +175,7 @@ struct uc_struct {
bool block_full;
MemoryRegion **mapped_blocks;
uint32_t mapped_block_count;
uint32_t mapped_block_cache_index;
void *qemu_thread_data; // to support cross compile to Windows (qemu-thread-win32.c)
uint32_t target_page_size;
uint32_t target_page_align;