[hellogcc] Re: QEMU Internal - Precise Exception Handling 1/5

  • From: 陳韋任 <chenwj@xxxxxxxxxxxxxx>
  • To: hellogcc@xxxxxxxxxxxxx
  • Date: Tue, 6 Mar 2012 15:33:27 +0800

> 就 guest 內存而言,我們將重點放在 guest memory store operation 上,因為只有
> memory store operation 會修改 guest 內存的內容。第一,QEMU 會依照 guest 原本
> memory store operation 的順序進行翻譯。第二,針對所有潛在會發生例外的 guest
> 指令,QEMU 保留其相對於 guest memory store operation 的順序。簡單來說,QEMU
> 不會 reorder guest 指令順序。這簡化了 QEMU 維護 precise exception 的複雜度,
> 但同時也喪失了一些潛在可能的優化。[2][3]

  補上跟 yao 的討論:

  hardware 对异常的处理可能还有别的行为,只要滿足 precise exception
  的規範,同样是可以接受的。在 QEMU,我们选择了一个最为保守的实现方式。

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj

Other related posts: