提交 e9d1485f 编写于 作者: Z Zihao Yu

monitor,diff-test: fix bug of inconsistent instructions during packing

上级 5e251b15
......@@ -17,6 +17,14 @@ static bool is_detach = false;
void difftest_skip_ref() {
if (is_detach) return;
is_skip_ref = true;
// If such an instruction is one of the instruction packing in QEMU
// (see below), we end the process of catching up with QEMU's pc to
// keep the consistent behavior in our best.
// Note that this is still not perfect: if the packed instructions
// already write some memory, and the incoming instruction in NEMU
// will load that memory, we will encounter false negative. But such
// situation is infrequent.
skip_dut_nr_instr = 0;
}
// this is used to deal with instruction packing in QEMU.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册