Lines Matching refs:ra
135 uintptr_t ra) in check_zicbo_envcfg() argument
139 riscv_raise_exception(env, RISCV_EXCP_ILLEGAL_INST, ra); in check_zicbo_envcfg()
145 riscv_raise_exception(env, RISCV_EXCP_VIRT_INSTRUCTION_FAULT, ra); in check_zicbo_envcfg()
149 riscv_raise_exception(env, RISCV_EXCP_ILLEGAL_INST, ra); in check_zicbo_envcfg()
159 uintptr_t ra = GETPC(); in helper_cbo_zero() local
162 check_zicbo_envcfg(env, MENVCFG_CBZE, ra); in helper_cbo_zero()
171 mem = probe_write(env, address, cbozlen, mmu_idx, ra); in helper_cbo_zero()
188 cpu_stb_mmuidx_ra(env, address + i, 0, mmu_idx, ra); in helper_cbo_zero()
203 uintptr_t ra) in check_zicbom_access() argument
227 mmu_idx, true, &phost, ra); in check_zicbom_access()
239 probe_write(env, address, cbomlen, mmu_idx, ra); in check_zicbom_access()
244 uintptr_t ra = GETPC(); in helper_cbo_clean_flush() local
245 check_zicbo_envcfg(env, MENVCFG_CBCFE, ra); in helper_cbo_clean_flush()
246 check_zicbom_access(env, address, ra); in helper_cbo_clean_flush()
253 uintptr_t ra = GETPC(); in helper_cbo_inval() local
254 check_zicbo_envcfg(env, MENVCFG_CBIE, ra); in helper_cbo_inval()
255 check_zicbom_access(env, address, ra); in helper_cbo_inval()
452 static int check_access_hlsv(CPURISCVState *env, bool x, uintptr_t ra) in check_access_hlsv() argument
457 riscv_raise_exception(env, RISCV_EXCP_VIRT_INSTRUCTION_FAULT, ra); in check_access_hlsv()
459 riscv_raise_exception(env, RISCV_EXCP_ILLEGAL_INST, ra); in check_access_hlsv()
471 uintptr_t ra = GETPC(); in helper_hyp_hlv_bu() local
472 int mmu_idx = check_access_hlsv(env, false, ra); in helper_hyp_hlv_bu()
475 return cpu_ldb_mmu(env, addr, oi, ra); in helper_hyp_hlv_bu()
480 uintptr_t ra = GETPC(); in helper_hyp_hlv_hu() local
481 int mmu_idx = check_access_hlsv(env, false, ra); in helper_hyp_hlv_hu()
484 return cpu_ldw_mmu(env, addr, oi, ra); in helper_hyp_hlv_hu()
489 uintptr_t ra = GETPC(); in helper_hyp_hlv_wu() local
490 int mmu_idx = check_access_hlsv(env, false, ra); in helper_hyp_hlv_wu()
493 return cpu_ldl_mmu(env, addr, oi, ra); in helper_hyp_hlv_wu()
498 uintptr_t ra = GETPC(); in helper_hyp_hlv_d() local
499 int mmu_idx = check_access_hlsv(env, false, ra); in helper_hyp_hlv_d()
502 return cpu_ldq_mmu(env, addr, oi, ra); in helper_hyp_hlv_d()
507 uintptr_t ra = GETPC(); in helper_hyp_hsv_b() local
508 int mmu_idx = check_access_hlsv(env, false, ra); in helper_hyp_hsv_b()
511 cpu_stb_mmu(env, addr, val, oi, ra); in helper_hyp_hsv_b()
516 uintptr_t ra = GETPC(); in helper_hyp_hsv_h() local
517 int mmu_idx = check_access_hlsv(env, false, ra); in helper_hyp_hsv_h()
520 cpu_stw_mmu(env, addr, val, oi, ra); in helper_hyp_hsv_h()
525 uintptr_t ra = GETPC(); in helper_hyp_hsv_w() local
526 int mmu_idx = check_access_hlsv(env, false, ra); in helper_hyp_hsv_w()
529 cpu_stl_mmu(env, addr, val, oi, ra); in helper_hyp_hsv_w()
534 uintptr_t ra = GETPC(); in helper_hyp_hsv_d() local
535 int mmu_idx = check_access_hlsv(env, false, ra); in helper_hyp_hsv_d()
538 cpu_stq_mmu(env, addr, val, oi, ra); in helper_hyp_hsv_d()
550 uintptr_t ra = GETPC(); in helper_hyp_hlvx_hu() local
551 int mmu_idx = check_access_hlsv(env, true, ra); in helper_hyp_hlvx_hu()
559 uintptr_t ra = GETPC(); in helper_hyp_hlvx_wu() local
560 int mmu_idx = check_access_hlsv(env, true, ra); in helper_hyp_hlvx_wu()
563 return cpu_ldl_code_mmu(env, addr, oi, ra); in helper_hyp_hlvx_wu()