Skip to content

Commit

Permalink
bug fix in calculating the Block's full address
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Dec 18, 2023
1 parent 8e00196 commit 0121dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rogue/interfaces/memory/Block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ uint64_t rim::Block::offset() {

// Get full address of this Block
uint64_t rim::Block::address() {
return (reqAddress() | offset_);
return (reqAddress() + offset_);
}

// Get size of this block in bytes.
Expand Down

0 comments on commit 0121dbe

Please sign in to comment.