diff options
author | Atul Khare <atulkhare@rivosinc.com> | 2023-05-13 10:15:21 -0700 |
---|---|---|
committer | Atul Khare <atulkhare@rivosinc.com> | 2023-05-17 12:59:45 -0700 |
commit | 7ad4123ade75475811119a371251825bed39bb1a (patch) | |
tree | d81a21e18c9793095f7668ee039816186d57e3bb | |
parent | ba1c96472293576c851d37dfeb9adb38fa2e2983 (diff) | |
download | riscv-isa-sim-7ad4123ade75475811119a371251825bed39bb1a.zip riscv-isa-sim-7ad4123ade75475811119a371251825bed39bb1a.tar.gz riscv-isa-sim-7ad4123ade75475811119a371251825bed39bb1a.tar.bz2 |
Rename commit_log_stash_privilege() to stash_privilege()
As noted in the previous commit, certain state updates were being made
only if commit logging was enabled. The commit_log_ prefix was dropped
since the old name no longer made sense with the unconditional updates.
-rw-r--r-- | riscv/execute.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc index 81e031b..0751476 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -14,7 +14,7 @@ static void commit_log_reset(processor_t* p) p->get_state()->log_mem_write.clear(); } -static void commit_log_stash_privilege(processor_t* p) +static void stash_privilege(processor_t* p) { state_t* state = p->get_state(); state->last_inst_priv = state->prv; @@ -161,7 +161,7 @@ inline void processor_t::update_histogram(reg_t pc) // These two functions are expected to be inlined by the compiler separately in // the processor_t::step() loop. The logged variant is used in the slow path static inline reg_t execute_insn_fast(processor_t* p, reg_t pc, insn_fetch_t fetch) { - commit_log_stash_privilege(p); + stash_privilege(p); return fetch.func(p, fetch.insn, pc); } static inline reg_t execute_insn_logged(processor_t* p, reg_t pc, insn_fetch_t fetch) @@ -169,7 +169,7 @@ static inline reg_t execute_insn_logged(processor_t* p, reg_t pc, insn_fetch_t f if (p->get_log_commits_enabled()) { commit_log_reset(p); } - commit_log_stash_privilege(p); + stash_privilege(p); reg_t npc; |