Re: [PATCH v2] target/loongarch: Add TCG macro in structure CPUArchState

2024-03-04 Thread maobibo
On 2024/3/5 上午12:53, Richard Henderson wrote: On 3/3/24 16:18, Bibo Mao wrote: @@ -696,11 +700,15 @@ void loongarch_cpu_dump_state(CPUState *cs, FILE *f, int flags)   {   LoongArchCPU *cpu = LOONGARCH_CPU(cs);   CPULoongArchState *env = &cpu->env; -    int i; +    int i, fp_status; +

Re: [PATCH v2] target/loongarch: Add TCG macro in structure CPUArchState

2024-03-04 Thread Richard Henderson
On 3/3/24 16:18, Bibo Mao wrote: @@ -696,11 +700,15 @@ void loongarch_cpu_dump_state(CPUState *cs, FILE *f, int flags) { LoongArchCPU *cpu = LOONGARCH_CPU(cs); CPULoongArchState *env = &cpu->env; -int i; +int i, fp_status; +#ifdef CONFIG_TCG +fp_status = get_float_e

Re: [PATCH v2] target/loongarch: Add TCG macro in structure CPUArchState

2024-03-04 Thread gaosong
在 2024/3/4 10:18, Bibo Mao 写道: In structure CPUArchState some struct elements are only used in TCG mode, and it is not used in KVM mode. Macro CONFIG_TCG is added to make it simpiler in KVM mode, also there is the same modification in c code when these struct elements are used. When VM runs in

[PATCH v2] target/loongarch: Add TCG macro in structure CPUArchState

2024-03-03 Thread Bibo Mao
In structure CPUArchState some struct elements are only used in TCG mode, and it is not used in KVM mode. Macro CONFIG_TCG is added to make it simpiler in KVM mode, also there is the same modification in c code when these struct elements are used. When VM runs in KVM mode, TLB entries are not used