target/loongarch: Add avail_LSX to check LSX instructions

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20230822032724.1353391-15-gaosong@loongson.cn>
Message-Id: <20230822073026.35776-1-philmd@linaro.org>
This commit is contained in:
Song Gao 2023-08-22 09:30:26 +02:00
parent b139ddf1e9
commit ebf288b410
No known key found for this signature in database
GPG Key ID: 40A2FFF239263EDF
2 changed files with 780 additions and 618 deletions

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,8 @@
#define avail_FP_DP(C) (FIELD_EX32((C)->cpucfg2, CPUCFG2, FP_DP))
#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))
/*
* If an operation is being performed on less than TARGET_LONG_BITS,