提交 0c205a13 编写于 作者: W wangkaifan

difftest: add macro to demand store-diff or not

上级 c5c06828
......@@ -363,6 +363,7 @@ uint64_t Emulator::execute(uint64_t max_cycle, uint64_t max_instr) {
max_instr -= diff.commit;
}
#ifdef DIFFTEST_STORE_COMMIT
if (dut_ptr->io_difftest_storeCommit) {
read_store_info(diff.store_addr, diff.store_data, diff.store_mask);
......@@ -381,6 +382,7 @@ uint64_t Emulator::execute(uint64_t max_cycle, uint64_t max_instr) {
}
}
}
#endif
uint32_t t = uptime();
if (t - lasttime_poll > 100) {
......
......@@ -7,6 +7,7 @@
#include <verilated_vcd_c.h> // Trace file format header
#define SNAPSHOT_INTERVAL 60 // unit: second
// #define DIFFTEST_STORE_COMMIT
struct EmuArgs {
uint32_t seed;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册