湖南大学学报(自然科学版)2024,Vol.51Issue(8):70-77,8.DOI:10.16339/j.cnki.hdxbzkb.2024279
基于QEMU的SIMD指令替换浮点指令框架
QEMU-based Framework for SIMD Instruction Replacement Floating-point Instructions
摘要
Abstract
Now,almost every processor architecture has added support for SIMD(single instruction multiple data)instructions.SIMD instructions can perform the same operation on a set of data simultaneously,enhancing the processing performance of the processor through data parallelism.However,most dynamic binary translators ignore the use of native SIMD instructions and instead simulate floating-point computations in software languages.This paper proposes a framework called FP-QEMU,based on QEMU translation system.FP-QEMU adopts SIMD instructions to optimize and replace floating-point calculation instructions,and completes a complete floating-point implementation on X86 and ARM benchmark platforms.The framework can identify the optimization opportunities of floating-point computation acceleration in dynamic binary translation system and use SIMD instructions to achieve the effect of improving the translation performance of dynamic binary translation system.Using SPEC 2006 as the benchmark,experiments show that compared with QEMU,FP-QEMU cross-platform ARM applications running on X86 computers can achieve a maximum speedup of 51.5%and an average speedup of 37.42%.关键词
SIMD/QEMU/动态二进制翻译/浮点计算Key words
SIMD/QEMU/dynamic binary translation/floating-point arithmetic分类
信息技术与安全科学引用本文复制引用
刘登峰,李东亚,柴志雷,周浩杰,丁海峰..基于QEMU的SIMD指令替换浮点指令框架[J].湖南大学学报(自然科学版),2024,51(8):70-77,8.基金项目
国家重点研发专项计划项目(2022YFE0112400),National Key R&D Program of China(2022YFE0112400) (2022YFE0112400)
国家自然科学基金资助项目(21706096),National Natural Science Foundation of China(21706096) (21706096)
江苏省自然科学基金青年项目(BK20160162),Youth Project of Natural Science Foundation of Jiangsu Province(BK20160162) (BK20160162)