计算机工程与设计
計算機工程與設計
계산궤공정여설계
Computer Engineering and Design
2015年
11期
2985-2989
,共5页
庄宽%蒋烈辉%李轶民%王飞龙
莊寬%蔣烈輝%李軼民%王飛龍
장관%장렬휘%리질민%왕비룡
系统仿真%精确异常%软硬件协同%自定义指令%基本块
繫統倣真%精確異常%軟硬件協同%自定義指令%基本塊
계통방진%정학이상%연경건협동%자정의지령%기본괴
system emulation%precise exception%software hardware co-design%customized instruction%basic block
为降低系统仿真软件在精确异常方面的性能开销,提高系统仿真效率,提出一种软硬件协同处理的方法。通过建立基本块与翻译块之间的映射关系,生成BTMT表,利用开源平台的开源特性,修改硬件描述语言,定义新指令并对BT‐MT表逆向查找,使系统仿真软件对异常的处理更加快速准确。测试结果表明,通过精确异常的协同实现,能够使系统仿真器更好支持精确异常,在性能上比纯软件实现精确异常有9.16%~14.32%的提升,验证了其可行性与有效性。
為降低繫統倣真軟件在精確異常方麵的性能開銷,提高繫統倣真效率,提齣一種軟硬件協同處理的方法。通過建立基本塊與翻譯塊之間的映射關繫,生成BTMT錶,利用開源平檯的開源特性,脩改硬件描述語言,定義新指令併對BT‐MT錶逆嚮查找,使繫統倣真軟件對異常的處理更加快速準確。測試結果錶明,通過精確異常的協同實現,能夠使繫統倣真器更好支持精確異常,在性能上比純軟件實現精確異常有9.16%~14.32%的提升,驗證瞭其可行性與有效性。
위강저계통방진연건재정학이상방면적성능개소,제고계통방진효솔,제출일충연경건협동처리적방법。통과건립기본괴여번역괴지간적영사관계,생성BTMT표,이용개원평태적개원특성,수개경건묘술어언,정의신지령병대BT‐MT표역향사조,사계통방진연건대이상적처리경가쾌속준학。측시결과표명,통과정학이상적협동실현,능구사계통방진기경호지지정학이상,재성능상비순연건실현정학이상유9.16%~14.32%적제승,험증료기가행성여유효성。
To reduce the performance overhead and improve the emulation efficiency of system emulation software in supporting the precise exception ,a software and hardware co‐processing approach was proposed .The BTMT table was generated by crea‐ting the mapping relation between basic blocks and translation blocks .Because of the open source nature of the open source plat‐form ,the hardware description language was modified to define new instructions and realize reverse lookup of the BTMT table . The exceptions were handled more quickly and accurately by system emulation software using this approach .Experimental re‐sults show that it not only makes the emulator support precise exception better ,but also increases the performance by 9.16% -14.32% than software implementation of precise exception ,which demonstrates the feasibility and the effectivity of the ap‐proach .