diff options
author | 2022-12-23 23:13:29 +0100 | |
---|---|---|
committer | 2022-12-29 06:59:49 -0800 | |
commit | 8963d6224009d7ac0523a05ceb9ea5d04ad5d12d (patch) | |
tree | be06ed3a0400fe3ab64fc0ebc7f55080d47e3700 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | RISC-V: kprobes: use central defined funct3 constants (diff) | |
download | wireguard-linux-8963d6224009d7ac0523a05ceb9ea5d04ad5d12d.tar.xz wireguard-linux-8963d6224009d7ac0523a05ceb9ea5d04ad5d12d.zip |
RISC-V: add U-type imm parsing to insn.h header
Similar to other existing types, allow extracting the immediate
for a U-type instruction.
U-type immediates are special in that regard, that the value
in the instruction in bits [31:12] already represents the same
bits of the immediate, so no shifting is required.
U-type immediates are for example used in the auipc instruction,
so these constants make it easier to parse such instructions.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Link: https://lore.kernel.org/r/20221223221332.4127602-10-heiko@sntech.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions