diff options
author | Song Gao <gaosong@loongson.cn> | 2022-06-06 20:42:55 +0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-06-06 18:09:03 +0000 |
commit | 63cfcd47d70de7b3133da894edd06d5bf0a5ad93 (patch) | |
tree | f239608ba08f1d18b76c5e55de635d2d2cb3e0ef /target/loongarch/translate.c | |
parent | 143d6785ef725aff6d09bc112c21119c32d9d0ae (diff) | |
download | qemu-63cfcd47d70de7b3133da894edd06d5bf0a5ad93.zip qemu-63cfcd47d70de7b3133da894edd06d5bf0a5ad93.tar.gz qemu-63cfcd47d70de7b3133da894edd06d5bf0a5ad93.tar.bz2 |
target/loongarch: Add fixed point shift instruction translation
This includes:
- SLL.W, SRL.W, SRA.W, ROTR.W
- SLLI.W, SRLI.W, SRAI.W, ROTRI.W
- SLL.D, SRL.D, SRA.D, ROTR.D
- SLLI.D, SRLI.D, SRAI.D, ROTRI.D
Signed-off-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220606124333.2060567-6-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/loongarch/translate.c')
-rw-r--r-- | target/loongarch/translate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/loongarch/translate.c b/target/loongarch/translate.c index 65c7dfd..d5640d5 100644 --- a/target/loongarch/translate.c +++ b/target/loongarch/translate.c @@ -146,6 +146,7 @@ static void gen_set_gpr(int reg_num, TCGv t, DisasExtend dst_ext) #include "decode-insns.c.inc" #include "insn_trans/trans_arith.c.inc" +#include "insn_trans/trans_shift.c.inc" static void loongarch_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs) { |