riscv: kprobes: implement the branch instructions

This has been tested by probing a module that contains each of the
flavors of branches we have.

Signed-off-by: Chen Lifu <chenlifu@huawei.com>
[Palmer: commit message, fix kconfig errors]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
This commit is contained in:
Chen Lifu 2021-06-29 10:34:55 +08:00 • committed by Palmer Dabbelt
commit 67979e927d
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889
2 changed files with 79 additions and 2 deletions