Re: [PATCH] target/loongarch: Add CSR_CPUID reg in cpu_env

2023-04-19 Thread Tianrui Zhao
在 2023年04月18日 20:45, Tianrui Zhao 写道: 在 2023年04月18日 20:40, Song Gao 写道: Hi, Tianrui 在 2023/4/18 下午8:20, Tianrui Zhao 写道: Add CSR_CPUID register in cpu_env to save the cpu_index value. Why do we need to do this? For tcg mode, it is enough to use cpu_index. You need to explain the reaso

Re: [PATCH] target/loongarch: Add CSR_CPUID reg in cpu_env

2023-04-18 Thread Tianrui Zhao
在 2023年04月18日 20:40, Song Gao 写道: Hi, Tianrui 在 2023/4/18 下午8:20, Tianrui Zhao 写道: Add CSR_CPUID register in cpu_env to save the cpu_index value. Why do we need to do this? For tcg mode, it is enough to use cpu_index. You need to explain the reason. Thank. Song Gao We prepare to add kv

Re: [PATCH] target/loongarch: Add CSR_CPUID reg in cpu_env

2023-04-18 Thread Song Gao
Hi,  Tianrui 在 2023/4/18 下午8:20, Tianrui Zhao 写道: Add CSR_CPUID register in cpu_env to save the cpu_index value. Why do we need to do this? For tcg mode, it is enough to use cpu_index. You need to explain the reason. Thank. Song Gao Signed-off-by: Tianrui Zhao --- target/loongarch/cpu.c

[PATCH] target/loongarch: Add CSR_CPUID reg in cpu_env

2023-04-18 Thread Tianrui Zhao
Add CSR_CPUID register in cpu_env to save the cpu_index value. Signed-off-by: Tianrui Zhao --- target/loongarch/cpu.c | 1 + target/loongarch/cpu.h | 1 + target/loongarch/insn_trans/trans_privileged.c.inc | 8 +--- 3 files changed, 3 i