Re: [PATCH] target/mips: Properly set C0_CMGCRBase after CPU reset

2022-11-23 Thread Jiaxun Yang
> 2022年11月14日 16:25,Jiaxun Yang 写道: > > Value of C0_CMGCRBase will be reseted to default when cpu reset > happens. In some cases software may move GCR base and then initiate > a CPU reset, this will leave C0_CMGCRBase of reseted core incorrect. > > Implement a callback in CMGCR device to allo

[PATCH] target/mips: Properly set C0_CMGCRBase after CPU reset

2022-11-14 Thread Jiaxun Yang
Value of C0_CMGCRBase will be reseted to default when cpu reset happens. In some cases software may move GCR base and then initiate a CPU reset, this will leave C0_CMGCRBase of reseted core incorrect. Implement a callback in CMGCR device to allow C0_CMGCRBase and other global states to be override