target_ulong rb, uint64_t key, bool store)
{
uint64_t calculated_hash = hash_digest(ra, rb, key), loaded_hash;
+ unsigned mmu_idx = cpu_mmu_index(env_cpu(env), false);
+ MemOp op = MO_TE | MO_UQ | MO_UNALN;
+ MemOpIdx oi = make_memop_idx(op, mmu_idx);
+ uintptr_t retaddr = GETPC();
if (store) {
- cpu_stq_data_ra(env, ea, calculated_hash, GETPC());
+ cpu_stq_mmu(env, ea, calculated_hash, oi, retaddr);
} else {
- loaded_hash = cpu_ldq_data_ra(env, ea, GETPC());
+ loaded_hash = cpu_ldq_mmu(env, ea, oi, retaddr);
if (loaded_hash != calculated_hash) {
raise_exception_err_ra(env, POWERPC_EXCP_PROGRAM,
- POWERPC_EXCP_TRAP, GETPC());
+ POWERPC_EXCP_TRAP, retaddr);
}
}
}