mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
target/loongarch: Supplement vcpu env initial when vcpu reset
Supplement vcpu env initial when vcpu reset, including init vcpu CSR_CPUID,CSR_TID to cpu->cpu_index. The two regs will be used in kvm_get/set_csr_ioctl. Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn> Signed-off-by: xianglai li <lixianglai@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn> Message-Id: <20240105075804.1228596-4-zhaotianrui@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
This commit is contained in:
parent
537ba9da17
commit
6278465696
2 changed files with 3 additions and 1 deletions
|
@ -319,6 +319,7 @@ typedef struct CPUArchState {
|
|||
uint64_t CSR_PWCH;
|
||||
uint64_t CSR_STLBPS;
|
||||
uint64_t CSR_RVACFG;
|
||||
uint64_t CSR_CPUID;
|
||||
uint64_t CSR_PRCFG1;
|
||||
uint64_t CSR_PRCFG2;
|
||||
uint64_t CSR_PRCFG3;
|
||||
|
@ -350,7 +351,6 @@ typedef struct CPUArchState {
|
|||
uint64_t CSR_DBG;
|
||||
uint64_t CSR_DERA;
|
||||
uint64_t CSR_DSAVE;
|
||||
uint64_t CSR_CPUID;
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
LoongArchTLB tlb[LOONGARCH_TLB_MAX];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue