Re: [PATCH 03/31] target/loongarch: Set default csr values.

2021-10-19 Thread Richard Henderson
On 10/19/21 12:34 AM, Xiaojuan Yang wrote: +#ifndef CONFIG_USER_ONLY +static void set_loongarch_csr(CPULoongArchState *env) +{ +uint64_t t; + +t = FIELD_DP64(0, CSR_PRCFG1, SAVE_NUM, 8); +t = FIELD_DP64(t, CSR_PRCFG1, TIMER_BITS, 0x2f); +t = FIELD_DP64(t, CSR_PRCFG1, VSMAX, 0x7);

[PATCH 03/31] target/loongarch: Set default csr values.

2021-10-19 Thread Xiaojuan Yang
This patch set default csr values Mainly used for cpu_initfn and cpu_reset. Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/cpu.c | 40 target/loongarch/cpu.h | 6 ++ 2 files changed, 46 insertions(+) diff --git a/target/l