[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v14 02/26] target/loongarch: Add core definition
|
From: |
gaosong |
|
Subject: |
Re: [PATCH v14 02/26] target/loongarch: Add core definition |
|
Date: |
Wed, 12 Jan 2022 17:28:38 +0800 |
|
User-agent: |
Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
Hi,
On 2022/1/9 下午5:25, WANG Xuerui wrote:
+ data =
"" CPUCFG16, L1_DPRE, 1);
+ data = "" CPUCFG16, L2_IUPRE, 1);
+ data = "" CPUCFG16, L2_IUUNIFY, 1);
+ data = "" CPUCFG16, L2_IUPRIV, 1);
+ data = "" CPUCFG16, L3_IUPRE, 1);
+ data = "" CPUCFG16, L3_IUUNIFY, 1);
+ data = "" CPUCFG16, L3_IUINCL, 1);
+ env->cpucfg[16] = data;
+
+ data = ""
+ data = "" CPUCFG17, L1IU_WAYS, 0x8003);
This seems out-of-place, according to the manual this field is
Way-1 for the L1I cache, so you have 0x8004=32772 ways in this
cache?
Same for all similar constructions below.
I have time to reply to your comment now.
As in the previous comments, I don't remember which one,these values should be the same as the values of the physical environment. I dumped 'CPUCFG17' value again,
the value is no problem. Maybe you didn't think about dumping these values when you commented. The value of 'L11U_SIZE' is dumped to be 0. and cpucfg[i] has been
initialized to 0 before. There is no need to set it again.
Thanks
Song
- [PATCH v14 04/26] target/loongarch: Add fixed point arithmetic instruction translation, (continued)
- [PATCH v14 04/26] target/loongarch: Add fixed point arithmetic instruction translation, Song Gao, 2022/01/06
- [PATCH v14 05/26] target/loongarch: Add fixed point shift instruction translation, Song Gao, 2022/01/06
- [PATCH v14 06/26] target/loongarch: Add fixed point bit instruction translation, Song Gao, 2022/01/06
- [PATCH v14 02/26] target/loongarch: Add core definition, Song Gao, 2022/01/06
- Re: [PATCH v14 02/26] target/loongarch: Add core definition, gaosong, 2022/01/10
- Re: [PATCH v14 02/26] target/loongarch: Add core definition, WANG Xuerui, 2022/01/10
- Re: [PATCH v14 02/26] target/loongarch: Add core definition,
gaosong <=
- Re: [PATCH v14 02/26] target/loongarch: Add core definition, gaosong, 2022/01/12
- Re: [PATCH v14 02/26] target/loongarch: Add core definition, WANG Xuerui, 2022/01/12
[PATCH v14 09/26] target/loongarch: Add fixed point extra instruction translation, Song Gao, 2022/01/06
[PATCH v14 11/26] target/loongarch: Add floating point comparison instruction translation, Song Gao, 2022/01/06
[PATCH v14 12/26] target/loongarch: Add floating point conversion instruction translation, Song Gao, 2022/01/06
[PATCH v14 14/26] target/loongarch: Add floating point load/store instruction translation, Song Gao, 2022/01/06
[PATCH v14 10/26] target/loongarch: Add floating point arithmetic instruction translation, Song Gao, 2022/01/06
[PATCH v14 15/26] target/loongarch: Add branch instruction translation, Song Gao, 2022/01/06
[PATCH v14 18/26] linux-user: Add LoongArch specific structures, Song Gao, 2022/01/06