Optimization of Dynamic Jump Handling in QEMU Based on Address Space Identifier
WEI Jin-Yi;LIANG Hong-Liang;School of Computer Science, Beijing University of Posts and Telecommunications;
The continuous evolution of hardware and software technology demands higher execution performance from instruction set architecture emulators represented by QEMU. This study analyzes the limitations of QEMU's existing dynamic jump handling mechanism in the scenario where the emulated architecture supports virtual memory, and proposes an optimized scheme based on address space identifiers suitable for common virtual memory systems. The proposed scheme is implemented for the RISC-V frontend in QEMU mainline 6.2.0 version. Evaluation results show that the dynamic jump scheme based on the address space identifier achieves an average performance improvement of 12%compared to the native QEMU.