High-Performance RISC-V Emulation

被引:0
作者
Lupori, Leandro [1 ]
do Rosario, Vanderson Martins [1 ]
Borin, Edson [1 ]
机构
[1] Univ Estadual Campinas, Inst Comp, Campinas, SP, Brazil
来源
HIGH PERFORMANCE COMPUTING SYSTEMS, WSCAD 2018 | 2020年 / 1171卷
基金
巴西圣保罗研究基金会;
关键词
RISC-V; Binary translation; LLVM; Emulation;
D O I
10.1007/978-3-030-41050-6_9
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
RISC-V is an open ISA that has been calling the attention worldwide by its fast growth and adoption. It is already supported by GCC, Clang and the Linux Kernel. However, none of the currently available RISC-V emulators are capable of providing good, near-native, emulation performance. Thus, in this work, we investigate if faster emulators for RISC-V could be created. Since Dynamic Binary Translation (DBT) is the most common, and fastest, technique to implement emulators, we focus our investigation on the quality of the translated code, arguably the most important source of overhead when emulating code with DBT. To this end, we implemented and evaluated a LLVM-based Static Binary Translation (SBT) engine to investigate whether or not it is possible to produce high-quality translations from RISC-V to x86 and ARM. We explored different translation techniques and managed to design an SBT engine that produces translated code that is only 1.2x/1.3x slower than native x86/ARM code, which supports the claim that it is possible to build near-native RISC-V emulators for x86 and ARM hosts. We also analyze the main sources of overheads, compare the code produced by our SBT against the code produced by a popular DBT and provide insights on the potential performance impact of the proposed techniques on DBTs.
引用
收藏
页码:135 / 151
页数:17
相关论文
共 28 条
  • [1] Auler R., 2017, SBAC PAD 2017
  • [2] Baraz L, 2003, 36TH INTERNATIONAL SYMPOSIUM ON MICROARCHITECTURE, PROCEEDINGS, P191
  • [3] Bellard F, 2005, USENIX Association Proceedings of the FREENIX/Open Source Track, P41
  • [4] Bellard Fabrice., TINYEMU
  • [5] Generalized Just-In-Time Trace Compilation using a Parallel Task Farm in a Dynamic Binary Translator
    Boehm, Igor
    von Koch, Tobias J. K. Edler
    Kyle, Stephen
    Franke, Bjoern
    Topham, Nigel
    [J]. ACM SIGPLAN NOTICES, 2011, 46 (06) : 74 - 85
  • [6] Borin E., 2009, 2009 IEEE INT S WORK
  • [7] Cesar D., 2013, 2013 IISWC
  • [8] Cifuentes C, 1996, INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, PROCEEDINGS, P340, DOI 10.1109/ICSM.1996.565037
  • [9] Clark M., 2017, 1 CARRV
  • [10] Gomes G.F.T., 2014, THESIS U CAMPINAS