Searched refs:csr_ops (Results 1 – 5 of 5) sorted by relevance
/qemu/target/riscv/ |
H A D | gdbstub.c | 279 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 D | th_csr.c | 56 .csr_ops = { "th.sxstatus", smode, read_th_sxstatus }
|
H A D | csr.c | 40 *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 D | cpu.c | 481 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 D | cpu.h | 902 riscv_csr_operations csr_ops; member 954 extern riscv_csr_operations csr_ops[CSR_TABLE_SIZE];
|