fix: exit execution when first difftest failed
All checks were successful
Build nix packages / build-matrix (default) (push) Successful in 2m5s

This commit is contained in:
xinyangli 2024-08-16 12:27:24 +08:00
parent 9ba8c3d97b
commit 507d20390c
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
4 changed files with 37 additions and 22 deletions

View file

@ -23,12 +23,6 @@ private:
return __atomic_load_n(&halt_status, __ATOMIC_RELAXED);
};
struct ExecRet {
bool at_breakpoint;
bool do_difftest;
};
ExecRet exec(size_t n, gdb_action_t *ret);
public:
Difftest(Target &&dut, std::vector<Target> &&refs);
@ -44,6 +38,13 @@ public:
bool set_bp(size_t addr, bp_type_t type);
bool del_bp(size_t addr, bp_type_t type);
struct ExecRet {
bool at_breakpoint;
bool do_difftest;
bool check_failed;
};
ExecRet exec(size_t n, gdb_action_t *ret);
bool check_all();
int sync_regs_to_ref(void);
std::string list_targets(void);