aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorHeiko Stuebner <[email protected]>2022-12-23 23:13:29 +0100
committerPalmer Dabbelt <[email protected]>2022-12-29 06:59:49 -0800
commit8963d6224009d7ac0523a05ceb9ea5d04ad5d12d (patch)
treebe06ed3a0400fe3ab64fc0ebc7f55080d47e3700 /scripts/generate_rust_analyzer.py
parentdebe28d0a52e972ab4d735ea2e12c2f88ec19d7c (diff)
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 <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Lad Prabhakar <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions