[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/7] target/loongarch: fix ASXE flag conflict
|
From: |
Song Gao |
|
Subject: |
[PULL 1/7] target/loongarch: fix ASXE flag conflict |
|
Date: |
Fri, 13 Oct 2023 16:17:44 +0800 |
From: Jiajie Chen <c@jia.je>
HW_FLAGS_EUEN_ASXE acccidentally conflicts with HW_FLAGS_CRMD_PG,
enabling LASX instructions even when CSR_EUEN.ASXE=0.
Closes: https://gitlab.com/qemu-project/qemu/-/issues/1907
Signed-off-by: Jiajie Chen <c@jia.je>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230930112837.1871691-1-c@jia.je>
Signed-off-by: Song Gao <gaosong@loongson.cn>
---
target/loongarch/cpu.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/loongarch/cpu.h b/target/loongarch/cpu.h
index 40e70a8119..8b54cf109c 100644
--- a/target/loongarch/cpu.h
+++ b/target/loongarch/cpu.h
@@ -458,11 +458,11 @@ static inline void set_pc(CPULoongArchState *env,
uint64_t value)
* LoongArch CPUs hardware flags.
*/
#define HW_FLAGS_PLV_MASK R_CSR_CRMD_PLV_MASK /* 0x03 */
-#define HW_FLAGS_CRMD_PG R_CSR_CRMD_PG_MASK /* 0x10 */
#define HW_FLAGS_EUEN_FPE 0x04
#define HW_FLAGS_EUEN_SXE 0x08
-#define HW_FLAGS_EUEN_ASXE 0x10
+#define HW_FLAGS_CRMD_PG R_CSR_CRMD_PG_MASK /* 0x10 */
#define HW_FLAGS_VA32 0x20
+#define HW_FLAGS_EUEN_ASXE 0x40
static inline void cpu_get_tb_cpu_state(CPULoongArchState *env, vaddr *pc,
uint64_t *cs_base, uint32_t *flags)
--
2.25.1
- [PULL 0/7] loongarch-to-apply queue, Song Gao, 2023/10/13
- [PULL 1/7] target/loongarch: fix ASXE flag conflict,
Song Gao <=
- [PULL 4/7] hw/loongarch/virt: Remove unused ISA UART, Song Gao, 2023/10/13
- [PULL 5/7] hw/loongarch/virt: Remove unused ISA Bus, Song Gao, 2023/10/13
- [PULL 7/7] LoongArch: step down as general arch maintainer, Song Gao, 2023/10/13
- [PULL 6/7] hw/loongarch/virt: Remove unused 'loongarch_virt_pm' region, Song Gao, 2023/10/13
- [PULL 2/7] target/loongarch: Add preldx instruction, Song Gao, 2023/10/13
- [PULL 3/7] hw/loongarch: remove global loaderparams variable, Song Gao, 2023/10/13
- Re: [PULL 0/7] loongarch-to-apply queue, Stefan Hajnoczi, 2023/10/16