Re: [PATCH 08/31] target/loongarch: Add tlb instruction support

2021-10-29 Thread Richard Henderson
On 10/29/21 12:01 AM, yangxiaojuan wrote: +env->CSR_CPUID = (cs->cpu_index & 0x1ff); Any reason to have a copy of cpu_index, as opposed to just using that field? CSR_CPUID is read-only after all. Yes, we need this value, the uefi code read this CPUID when Start slave cores. That's

Re: [PATCH 08/31] target/loongarch: Add tlb instruction support

2021-10-29 Thread yangxiaojuan
Hi, Richard: On 10/20/2021 12:19 PM, Richard Henderson wrote: > On 10/19/21 12:34 AM, Xiaojuan Yang wrote: >> This includes: >> - TLBSRCH >> - TLBRD >> - TLBWR >> - TLBFILL >> - TLBCLR >> - TLBFLUSH >> - INVTLB >> >> Signed-off-by: Xiaojuan Yang >> Signed-off-by: Song Gao >> --- >>

Re: [PATCH 08/31] target/loongarch: Add tlb instruction support

2021-10-19 Thread Richard Henderson
On 10/19/21 12:34 AM, Xiaojuan Yang wrote: This includes: - TLBSRCH - TLBRD - TLBWR - TLBFILL - TLBCLR - TLBFLUSH - INVTLB Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.c | 19 + target/loongarch/helper.h| 8 +

[PATCH 08/31] target/loongarch: Add tlb instruction support

2021-10-19 Thread Xiaojuan Yang
This includes: - TLBSRCH - TLBRD - TLBWR - TLBFILL - TLBCLR - TLBFLUSH - INVTLB Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.c | 19 + target/loongarch/helper.h| 8 + target/loongarch/insn_trans/trans_core.c | 54 +++