arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.06825cs.AR
收藏

RISC-V系统的快速TLB仿真

Fast TLB Simulation for RISC-V Systems

Xuan Guo, Robert Mullins

摘要:

地址转换和保护在当今的处理器中扮演着重要的角色,支持多处理和加强安全性。从历史上看,地址转换机制的设计与指令集密切相关。相比之下,RISC-V以允许各种设计的方式定义了其特权规范。设计空间的一个重要部分是翻译后备缓冲区(TLB)的组织。本文介绍了我们最近在多核RISC-V系统中模拟TLB行为的工作。我们的TLB仿真框架允许对各种硬件TLB设计选择进行快速、灵活和通用的原型设计,并支持对在RISC-V系统上运行的软件进行验证、分析和基准测试。我们展示了如何将此框架与动态二进制翻译仿真器QEMU集成,以执行在线仿真。在模拟复杂的多级共享TLB设计时,该框架在模拟8核系统时以每秒约4亿条指令(MIPS)的速度运行。当基准测试的L1 TLB未命中率为1%时,与未修改的QEMU相比,性能开销仅为18%。我们还演示了如何使用这个工具来探索的防御集水平的设计空间。我们测试了RISC-V特权规范目前不允许的共享最后一级TLB设计。然后,我们提出了扩展RISC-V的虚拟内存系统设计的基础上,这些实验结果。

英文摘要:

Address translation and protection play important roles in today's processors, supporting multiprocessing and enforcing security. Historically, the design of the address translation mechanisms has been closely tied to the instruction set. In contrast, RISC-V defines its privileged specification in a way that permits a variety of designs. An important part of the design space is the organisation of Translation Lookaside Buffers (TLBs). This paper presents our recent work on simulating TLB behaviours in multi-core RISC-V systems. Our TLB simulation framework allows rapid, flexible and versatile prototyping of various hardware TLB design choices, and enables validation, profiling and benchmarking of software running on RISC-V systems. We show how this framework can be integrated with the dynamic binary translated emulator QEMU to perform online simulation. When simulating complicated multi-level shared TLB designs, the framework runs at around 400 million instructions per second (MIPS) when simulating an 8-core system. The performance overhead compared to unmodified QEMU is only 18% when the benchmark's L1 TLB miss rate is 1%. We also demonstrate how this tool can be used to explore the instruction-set level design space. We test a shared last-level TLB design that is not currently permitted by the RISC-V's privileged specification. We then propose an extension to RISC-V's virtual memory system design based on these experimental results.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑