Lines Matching refs:ahcf

232 static bool kvm_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf)  in kvm_arm_get_host_cpu_features()  argument
290 ahcf->target = init.target; in kvm_arm_get_host_cpu_features()
291 ahcf->dtb_compatible = "arm,arm-v8"; in kvm_arm_get_host_cpu_features()
293 err = read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64pfr0, in kvm_arm_get_host_cpu_features()
312 ahcf->isar.id_aa64pfr0 = 0x00000011; /* EL1&0, AArch64 only */ in kvm_arm_get_host_cpu_features()
315 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64pfr1, in kvm_arm_get_host_cpu_features()
317 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64smfr0, in kvm_arm_get_host_cpu_features()
319 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64dfr0, in kvm_arm_get_host_cpu_features()
321 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64dfr1, in kvm_arm_get_host_cpu_features()
323 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64isar0, in kvm_arm_get_host_cpu_features()
325 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64isar1, in kvm_arm_get_host_cpu_features()
327 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64isar2, in kvm_arm_get_host_cpu_features()
329 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64mmfr0, in kvm_arm_get_host_cpu_features()
331 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64mmfr1, in kvm_arm_get_host_cpu_features()
333 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64mmfr2, in kvm_arm_get_host_cpu_features()
335 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64mmfr3, in kvm_arm_get_host_cpu_features()
345 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_pfr0, in kvm_arm_get_host_cpu_features()
347 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_pfr1, in kvm_arm_get_host_cpu_features()
349 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_dfr0, in kvm_arm_get_host_cpu_features()
351 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_mmfr0, in kvm_arm_get_host_cpu_features()
353 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_mmfr1, in kvm_arm_get_host_cpu_features()
355 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_mmfr2, in kvm_arm_get_host_cpu_features()
357 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_mmfr3, in kvm_arm_get_host_cpu_features()
359 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_isar0, in kvm_arm_get_host_cpu_features()
361 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_isar1, in kvm_arm_get_host_cpu_features()
363 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_isar2, in kvm_arm_get_host_cpu_features()
365 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_isar3, in kvm_arm_get_host_cpu_features()
367 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_isar4, in kvm_arm_get_host_cpu_features()
369 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_isar5, in kvm_arm_get_host_cpu_features()
371 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_mmfr4, in kvm_arm_get_host_cpu_features()
373 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_isar6, in kvm_arm_get_host_cpu_features()
376 err |= read_sys_reg32(fdarray[2], &ahcf->isar.mvfr0, in kvm_arm_get_host_cpu_features()
378 err |= read_sys_reg32(fdarray[2], &ahcf->isar.mvfr1, in kvm_arm_get_host_cpu_features()
380 err |= read_sys_reg32(fdarray[2], &ahcf->isar.mvfr2, in kvm_arm_get_host_cpu_features()
382 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_pfr2, in kvm_arm_get_host_cpu_features()
384 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_dfr1, in kvm_arm_get_host_cpu_features()
386 err |= read_sys_reg32(fdarray[2], &ahcf->isar.id_mmfr5, in kvm_arm_get_host_cpu_features()
399 if (FIELD_EX32(ahcf->isar.id_aa64pfr0, ID_AA64PFR0, EL1) >= 2) { in kvm_arm_get_host_cpu_features()
400 int wrps = FIELD_EX64(ahcf->isar.id_aa64dfr0, ID_AA64DFR0, WRPS); in kvm_arm_get_host_cpu_features()
401 int brps = FIELD_EX64(ahcf->isar.id_aa64dfr0, ID_AA64DFR0, BRPS); in kvm_arm_get_host_cpu_features()
403 FIELD_EX64(ahcf->isar.id_aa64dfr0, ID_AA64DFR0, CTX_CMPS); in kvm_arm_get_host_cpu_features()
406 !!FIELD_EX32(ahcf->isar.id_aa64pfr0, ID_AA64PFR0, EL3); in kvm_arm_get_host_cpu_features()
416 ahcf->isar.dbgdidr = dbgdidr; in kvm_arm_get_host_cpu_features()
421 err |= read_sys_reg64(fdarray[2], &ahcf->isar.reset_pmcr_el0, in kvm_arm_get_host_cpu_features()
433 err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64zfr0, in kvm_arm_get_host_cpu_features()
454 ahcf->features = features; in kvm_arm_get_host_cpu_features()