Home
last modified time | relevance | path

Searched refs:CSR_TCFG (Results 1 – 7 of 7) sorted by relevance

/openbmc/qemu/target/loongarch/tcg/
H A Dconstant_timer.c39 env->CSR_TCFG = value; in cpu_loongarch_store_constant_timer_config()
55 if (FIELD_EX64(env->CSR_TCFG, CSR_TCFG, PERIODIC)) { in loongarch_constant_timer_cb()
57 next = now + (env->CSR_TCFG & CONSTANT_TIMER_TICK_MASK) * TIMER_PERIOD; in loongarch_constant_timer_cb()
60 env->CSR_TCFG = FIELD_DP64(env->CSR_TCFG, CSR_TCFG, EN, 0); in loongarch_constant_timer_cb()
H A Dcsr_helper.c79 int64_t old_v = env->CSR_TCFG; in helper_csrwr_tcfg()
/openbmc/qemu/target/loongarch/
H A Dcpu-csr.h139 FIELD(CSR_TCFG, EN, 0, 1)
140 FIELD(CSR_TCFG, PERIODIC, 1, 1)
141 FIELD(CSR_TCFG, INIT_VAL, 2, 46)
H A Dcpu.c547 env->CSR_TCFG = FIELD_DP64(env->CSR_TCFG, CSR_TCFG, EN, 0); in loongarch_cpu_reset_hold()
778 qemu_fprintf(f, "TCFG=%016" PRIx64 "\n", env->CSR_TCFG); in loongarch_cpu_dump_state()
H A Dmachine.c205 VMSTATE_UINT64(env.CSR_TCFG, LoongArchCPU),
H A Dcpu.h341 uint64_t CSR_TCFG; member
/openbmc/qemu/target/loongarch/kvm/
H A Dkvm.c295 &env->CSR_TCFG); in kvm_loongarch_get_csr()
471 &env->CSR_TCFG); in kvm_loongarch_put_csr()