Skip to content
Snippets Groups Projects
Commit 33632775 authored by Frédéric Pétrot's avatar Frédéric Pétrot Committed by Alistair Francis
Browse files

target/riscv: fix shifts shamt value for rv128c


For rv128c shifts, a shamt of 0 is a shamt of 64, while for rv32c/rv64c
it stays 0 and is a hint instruction that does not change processor state.
For rv128c right shifts, the 6-bit shamt is in addition sign extended to
7 bits.

Signed-off-by: default avatarFrédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>
Reviewed-by: default avatarWeiwei Li <liweiwei@iscas.ac.cn>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-Id: <20220710110451.245567-1-frederic.petrot@univ-grenoble-alpes.fr>
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent 9a1f054d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment