From 91b6d252a20b24b9f33f49cd13d3fa48f3951edf Mon Sep 17 00:00:00 2001 From: Ziyue Pan Date: Mon, 3 Jan 2022 15:46:07 +0800 Subject: [PATCH] Update difftest.cpp signed off by ziyue --- src/difftest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/difftest.cpp b/src/difftest.cpp index 9ee2e4d..b223c1d 100644 --- a/src/difftest.cpp +++ b/src/difftest.cpp @@ -103,8 +103,7 @@ bool difftest_regs (qemu_regs_t *regs, qemu_regs_t *dut_regs, diff_pcs *dut_pcs) } for (int i = 33; i < regs_count; i++) { - // skip mstatus - // for (int i = 34; i < regs_count; i++) { + if (i == 33 || i == 43) { continue; } // skip `mstatus` and `sstatus` if (regs->array[i] != dut_regs->array[i]) { sleep(0.5); for (int j = 0; j < 3; j++) {