Skip to content

Commit

Permalink
Enable watchpoint support for PowerPC
Browse files Browse the repository at this point in the history
PowerPC supports data watchpoint through DAWR register.
The invalid watchpoint modes referenced from
PowerISA Book III v3.1, Section 5.4.4 and 9.4

Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com>
  • Loading branch information
Abhishek Dubey committed Apr 24, 2023
1 parent c35b4fe commit 386edea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/arch/ppc64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,13 @@ std::string name()

std::vector<std::string> invalid_watchpoint_modes()
{
throw std::runtime_error(
"Watchpoints are not supported on this architecture");
// See PowerISA Book III v3.1, Section 5.4.4 and 9.4
return std::vector<std::string>{
"x",
"rx",
"wx",
"rwx",
};
}

} // namespace arch
Expand Down

0 comments on commit 386edea

Please sign in to comment.