Lines Matching refs:cpucfg
384 env->cpucfg[i] = 0x0; in loongarch_la464_initfn()
388 env->cpucfg[0] = 0x14c010; /* PRID */ in loongarch_la464_initfn()
402 env->cpucfg[1] = data; in loongarch_la464_initfn()
415 env->cpucfg[2] = data; in loongarch_la464_initfn()
417 env->cpucfg[4] = 100 * 1000 * 1000; /* Crystal frequency */ in loongarch_la464_initfn()
422 env->cpucfg[5] = data; in loongarch_la464_initfn()
433 env->cpucfg[16] = data; in loongarch_la464_initfn()
439 env->cpucfg[17] = data; in loongarch_la464_initfn()
445 env->cpucfg[18] = data; in loongarch_la464_initfn()
451 env->cpucfg[19] = data; in loongarch_la464_initfn()
457 env->cpucfg[20] = data; in loongarch_la464_initfn()
483 env->cpucfg[i] = 0x0; in loongarch_la132_initfn()
487 env->cpucfg[0] = 0x148042; /* PRID */ in loongarch_la132_initfn()
501 env->cpucfg[1] = data; in loongarch_la132_initfn()
620 if (FIELD_EX32(cpu->env.cpucfg[2], CPUCFG2, LSX)) { in loongarch_get_lsx()
633 cpu->env.cpucfg[2] = FIELD_DP32(cpu->env.cpucfg[2], CPUCFG2, LSX, 1); in loongarch_set_lsx()
635 cpu->env.cpucfg[2] = FIELD_DP32(cpu->env.cpucfg[2], CPUCFG2, LSX, 0); in loongarch_set_lsx()
636 cpu->env.cpucfg[2] = FIELD_DP32(cpu->env.cpucfg[2], CPUCFG2, LASX, 0); in loongarch_set_lsx()
645 if (FIELD_EX32(cpu->env.cpucfg[2], CPUCFG2, LASX)) { in loongarch_get_lasx()
658 if (!FIELD_EX32(cpu->env.cpucfg[2], CPUCFG2, LSX)) { in loongarch_set_lasx()
659 cpu->env.cpucfg[2] = FIELD_DP32(cpu->env.cpucfg[2], CPUCFG2, LSX, 1); in loongarch_set_lasx()
661 cpu->env.cpucfg[2] = FIELD_DP32(cpu->env.cpucfg[2], CPUCFG2, LASX, 1); in loongarch_set_lasx()
663 cpu->env.cpucfg[2] = FIELD_DP32(cpu->env.cpucfg[2], CPUCFG2, LASX, 0); in loongarch_set_lasx()