diff options
author | Song Gao <gaosong@loongson.cn> | 2023-05-04 20:27:30 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2023-05-06 11:19:45 +0800 |
commit | 57b4f1ac18871f2f3323bf6fc88e9ae2a1a5d4ec (patch) | |
tree | cfcc68f3e3eba632164e63aeeb30f9fee6dc9a2e /target/loongarch/translate.h | |
parent | a3f3db5cda7bf6edf0fc0c94c3aa450eb79a2185 (diff) | |
download | qemu-57b4f1ac18871f2f3323bf6fc88e9ae2a1a5d4ec.zip qemu-57b4f1ac18871f2f3323bf6fc88e9ae2a1a5d4ec.tar.gz qemu-57b4f1ac18871f2f3323bf6fc88e9ae2a1a5d4ec.tar.bz2 |
target/loongarch: Implement vadd/vsub
This patch includes:
- VADD.{B/H/W/D/Q};
- VSUB.{B/H/W/D/Q}.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230504122810.4094787-5-gaosong@loongson.cn>
Diffstat (limited to 'target/loongarch/translate.h')
-rw-r--r-- | target/loongarch/translate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/loongarch/translate.h b/target/loongarch/translate.h index 67bc74c..7f60090 100644 --- a/target/loongarch/translate.h +++ b/target/loongarch/translate.h @@ -31,6 +31,7 @@ typedef struct DisasContext { uint32_t opcode; uint16_t mem_idx; uint16_t plv; + int vl; /* Vector length */ TCGv zero; } DisasContext; |