Skip to content

Commit

Permalink
br_pred
Browse files Browse the repository at this point in the history
  • Loading branch information
William Song authored and William Song committed May 14, 2023
1 parent ed1e995 commit 37a1f8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions br_predictor.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class br_target_buffer_t {
~br_target_buffer_t();

uint64_t get_target(uint64_t m_pc); // Get a branch target address.
void update(uint64_t m_pc, uint64_t m_target_addr); // Update the branch target buffer.
void update(uint64_t m_pc, uint64_t m_target_addr); // Update the BTB.

private:
uint64_t num_entries; // Number of target addresses
uint64_t num_entries; // Number of BTB entries
uint64_t *buffer; // Target address array
};

Expand Down

0 comments on commit 37a1f8a

Please sign in to comment.