Searched refs:mimpid (Results 1 – 8 of 8) sorted by relevance
17 #define CPUINFO_MIMP "mimpid"41 char *mimpid = NULL; in _get_cpuid() local 61 mimpid = _get_field(line); in _get_cpuid() 62 if (!mimpid) in _get_cpuid() 69 if (!mvendorid || !marchid || !mimpid) in _get_cpuid() 72 if (asprintf(&cpuid, "%s-%s-%s", mvendorid, marchid, mimpid) < 0) in _get_cpuid() 79 free(mimpid); in _get_cpuid()
193 return ci->mimpid; in riscv_cached_mimpid()206 ci->mimpid = sbi_spec_is_0_1() ? 0 : sbi_get_mimpid(); in riscv_cpuinfo_starting()212 ci->mimpid = csr_read(CSR_MIMPID); in riscv_cpuinfo_starting()216 ci->mimpid = 0; in riscv_cpuinfo_starting()363 seq_printf(m, "mimpid\t\t: 0x%lx\n", ci->mimpid); in c_show()
59 *out_val = vcpu->arch.mimpid; in kvm_sbi_ext_base_handler()
255 case KVM_REG_RISCV_CONFIG_REG(mimpid): in kvm_riscv_vcpu_get_reg_config()256 reg_val = vcpu->arch.mimpid; in kvm_riscv_vcpu_get_reg_config()356 case KVM_REG_RISCV_CONFIG_REG(mimpid): in kvm_riscv_vcpu_set_reg_config()357 if (reg_val == vcpu->arch.mimpid) in kvm_riscv_vcpu_set_reg_config()360 vcpu->arch.mimpid = reg_val; in kvm_riscv_vcpu_set_reg_config()
124 vcpu->arch.mimpid = sbi_get_mimpid(); in kvm_arch_vcpu_create()
25 unsigned long mimpid; member
55 unsigned long mimpid; member
207 case KVM_REG_RISCV_CONFIG_REG(mimpid): in config_id_to_str()688 KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_CONFIG | KVM_REG_RISCV_CONFIG_REG(mimpid),