Home
last modified time | relevance | path

Searched refs:csr_ops (Results 1 – 5 of 5) sorted by relevance

/qemu/target/riscv/
H A Dgdbstub.c279 if (env->priv_ver < csr_ops[i].min_priv_ver) { in riscv_gen_dynamic_csr_feature()
282 predicate = csr_ops[i].predicate; in riscv_gen_dynamic_csr_feature()
284 name = csr_ops[i].name; in riscv_gen_dynamic_csr_feature()
H A Dth_csr.c56 .csr_ops = { "th.sxstatus", smode, read_th_sxstatus }
H A Dcsr.c40 *ops = csr_ops[csrno & (CSR_TABLE_SIZE - 1)]; in riscv_get_csr_ops()
45 csr_ops[csrno & (CSR_TABLE_SIZE - 1)] = *ops; in riscv_set_csr_ops()
5476 int csr_min_priv = csr_ops[csrno].min_priv_ver; in riscv_csrrw_check()
5484 if (!csr_ops[csrno].predicate) { in riscv_csrrw_check()
5505 RISCVException ret = csr_ops[csrno].predicate(env, csrno); in riscv_csrrw_check()
5543 if (csr_ops[csrno].op) { in riscv_csrrw_do64()
5544 return csr_ops[csrno].op(env, csrno, ret_value, new_value, write_mask); in riscv_csrrw_do64()
5553 if (!csr_ops[csrno].read) { in riscv_csrrw_do64()
5557 ret = csr_ops[csrno].read(env, csrno, &old_value); in riscv_csrrw_do64()
5566 if (csr_ops[csrno].write) { in riscv_csrrw_do64()
[all …]
H A Dcpu.c481 for (size_t i = 0; csr_list[i].csr_ops.name; i++) { in riscv_register_custom_csrs()
483 const riscv_csr_operations *csr_ops = &csr_list[i].csr_ops; in riscv_register_custom_csrs() local
485 riscv_set_csr_ops(csrno, csr_ops); in riscv_register_custom_csrs()
576 csr_ops[csrno].name, val); in riscv_cpu_dump_state()
594 csr_ops[CSR_FCSR].name, val); in riscv_cpu_dump_state()
625 csr_ops[csrno].name, val); in riscv_cpu_dump_state()
H A Dcpu.h902 riscv_csr_operations csr_ops; member
954 extern riscv_csr_operations csr_ops[CSR_TABLE_SIZE];