Skip to content

Commit

Permalink
Avoid include Verilator files in src/difftest
Browse files Browse the repository at this point in the history
  • Loading branch information
poemonsense committed Sep 21, 2023
1 parent 8aa9275 commit 275fe06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/csrc/difftest/difftest.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
#include <vector>
#include "common.h"
#include "difftrace.h"
#ifdef FUZZING
#include "emu.h"
#endif // FUZZING
#include "refproxy.h"
#include "golden.h"

Expand Down Expand Up @@ -313,6 +315,7 @@ class Difftest {
}
inline bool in_disambiguation_state() {
static bool was_found = false;
#ifdef FUZZING
// Only in fuzzing mode
if (proxy->in_disambiguation_state()) {
was_found = true;
Expand All @@ -322,6 +325,7 @@ class Difftest {
stats.exit_code = SimExitCode::ambiguous;
#endif // FUZZER_LIB
}
#endif // FUZZING
return was_found;
}

Expand Down

0 comments on commit 275fe06

Please sign in to comment.