[PATCH v2 08/13] RISC-V: add U-type imm parsing to parse_asm header
Andrew Jones
ajones at ventanamicro.com
Wed Nov 30 08:02:15 PST 2022
On Mon, Nov 28, 2022 at 11:26:27AM +0100, Heiko Stuebner wrote:
> From: Heiko Stuebner <heiko.stuebner at vrull.eu>
>
> 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.
>
> Signed-off-by: Heiko Stuebner <heiko.stuebner at vrull.eu>
> ---
> arch/riscv/include/asm/insn.h | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
With the s/parse_asm/insn/ <<<$SUBJECT that Conor pointed out.
Reviewed-by: Andrew Jones <ajones at ventanamicro.com>
More information about the linux-riscv
mailing list