target/loongarch: CPUCFG support LSX
authorSong Gao <gaosong@loongson.cn>
Thu, 4 May 2023 12:28:10 +0000 (20:28 +0800)
committerSong Gao <gaosong@loongson.cn>
Sat, 6 May 2023 03:19:50 +0000 (11:19 +0800)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230504122810.4094787-45-gaosong@loongson.cn>

target/loongarch/cpu.c

index 55d7f9255e734803aff5df32a051f9d7d299c145..c0afc21b2f5a142bffe9395ad263e71a410e8662 100644 (file)
@@ -388,6 +388,7 @@ static void loongarch_la464_initfn(Object *obj)
     data = FIELD_DP32(data, CPUCFG2, FP_SP, 1);
     data = FIELD_DP32(data, CPUCFG2, FP_DP, 1);
     data = FIELD_DP32(data, CPUCFG2, FP_VER, 1);
+    data = FIELD_DP32(data, CPUCFG2, LSX, 1),
     data = FIELD_DP32(data, CPUCFG2, LLFTP, 1);
     data = FIELD_DP32(data, CPUCFG2, LLFTP_VER, 1);
     data = FIELD_DP32(data, CPUCFG2, LAM, 1);