Skip to content

Commit

Permalink
adds support for different branch types in tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
eyck committed Aug 8, 2022
1 parent d40069a commit c4ef313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/iss/interp/vm_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ template <typename ARCH> class vm_base : public debugger_if, public vm_if {
inline void do_sync(sync_type s, unsigned inst_id) {
if (s == PRE_SYNC) {
ex_info.branch_taken=false;
ex_info.hw_branch_taken=false;
if (debugging_enabled())
tgt_adapter->check_continue(get_reg<addr_t>(arch::traits<ARCH>::PC)); //pre_instr_sync();
}
Expand Down
1 change: 1 addition & 0 deletions src/iss/vm_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ END_BF_DECL();

struct exec_info {
bool branch_taken{false};
bool hw_branch_taken{false};
};
class vm_plugin { // @suppress("Class has a virtual method and non-virtual destructor")
public:
Expand Down

0 comments on commit c4ef313

Please sign in to comment.