diff options
author | Song Gao <gaosong@loongson.cn> | 2023-09-14 10:26:01 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2023-09-20 11:43:11 +0800 |
commit | cf61aef308a51978fe6902d7e9e96f61901e52ce (patch) | |
tree | 6e9e5d378f7f300f587772be8bfad58c628654c0 /target/loongarch/translate.h | |
parent | b8f1bdf3d1f5ed8e048e5982e3df8297e97b98ff (diff) |
target/loongarch: Add avail_LASX to check LASX instructions
Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230914022645.1151356-14-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 89b49a859e..195f53573a 100644 --- a/target/loongarch/translate.h +++ b/target/loongarch/translate.h @@ -23,6 +23,7 @@ #define avail_LSPW(C) (FIELD_EX32((C)->cpucfg2, CPUCFG2, LSPW)) #define avail_LAM(C) (FIELD_EX32((C)->cpucfg2, CPUCFG2, LAM)) #define avail_LSX(C) (FIELD_EX32((C)->cpucfg2, CPUCFG2, LSX)) +#define avail_LASX(C) (FIELD_EX32((C)->cpucfg2, CPUCFG2, LASX)) #define avail_IOCSR(C) (FIELD_EX32((C)->cpucfg1, CPUCFG1, IOCSR)) /* |