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.1B, Section 5.4.4 and 10.4

Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com>
  • Loading branch information
Abhishek Dubey committed Apr 25, 2023
1 parent 5c34966 commit e5408c3
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.1B, Section 5.4.4 and 10.4
return std::vector<std::string>{
"x",
"rx",
"wx",
"rwx",
};
}

} // namespace arch
Expand Down

0 comments on commit e5408c3

Please sign in to comment.