diff options
author | Heiko Stuebner <heiko.stuebner@vrull.eu> | 2022-12-24 01:13:29 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-12-29 17:59:49 +0300 |
commit | 8963d6224009d7ac0523a05ceb9ea5d04ad5d12d (patch) | |
tree | be06ed3a0400fe3ab64fc0ebc7f55080d47e3700 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | debe28d0a52e972ab4d735ea2e12c2f88ec19d7c (diff) | |
download | linux-8963d6224009d7ac0523a05ceb9ea5d04ad5d12d.tar.xz |
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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions