diff options
author | Chen Lifu <chenlifu@huawei.com> | 2021-06-29 10:34:54 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-07-21 23:22:25 -0700 |
commit | b7d2be48cc08a9d42e347d944efa9f37ab9b83d2 (patch) | |
tree | b10d42195e41968eed298d2973818d1e7157347a /arch/riscv/kernel/probes/decode-insn.c | |
parent | e73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff) |
riscv: kprobes: implement the auipc instruction
This has been tested by probing a module that contains an auipc
instruction.
Signed-off-by: Chen Lifu <chenlifu@huawei.com>
[Palmer: commit message]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/kernel/probes/decode-insn.c')
-rw-r--r-- | arch/riscv/kernel/probes/decode-insn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/probes/decode-insn.c b/arch/riscv/kernel/probes/decode-insn.c index 0ed043acc882..5eb03fb61450 100644 --- a/arch/riscv/kernel/probes/decode-insn.c +++ b/arch/riscv/kernel/probes/decode-insn.c @@ -38,11 +38,11 @@ riscv_probe_decode_insn(probe_opcode_t *addr, struct arch_probe_insn *api) RISCV_INSN_REJECTED(c_ebreak, insn); #endif - RISCV_INSN_REJECTED(auipc, insn); RISCV_INSN_REJECTED(branch, insn); RISCV_INSN_SET_SIMULATE(jal, insn); RISCV_INSN_SET_SIMULATE(jalr, insn); + RISCV_INSN_SET_SIMULATE(auipc, insn); return INSN_GOOD; } |