示例#1
0
target_ulong helper_csrrc(CPURISCVState *env, target_ulong src,
        target_ulong csr, target_ulong new_pc) {
    validate_csr(env, csr, 1, new_pc);
    uint64_t csr_backup = csr_read_helper(env, csr);
    csr_write_helper(env, (~src) & csr_backup, csr);
    return csr_backup;
}
示例#2
0
target_ulong helper_csrrc(CPURISCVState *env, target_ulong src, target_ulong csr) {
    uint64_t csr_backup = csr_read_helper(env, csr);
    csr_write_helper(env, (~src) & csr_backup, csr);
    return csr_backup;
}