aboutsummaryrefslogtreecommitdiff
path: root/riscv/mmu.cc
diff options
context:
space:
mode:
authorYenHaoChen <howard25336284@gmail.com>2024-07-18 14:04:12 +0800
committerYenHaoChen <howard25336284@gmail.com>2024-07-06 03:30:41 +0800
commitf47782cf9e8aaa956e880d86776416a23ce60c83 (patch)
tree83cdbce53faacaeec3e9f5188d06daecd85adbaa /riscv/mmu.cc
parent37d06eb8ba7d15c853112f7aa2d4dc69992f1508 (diff)
downloadspike-f47782cf9e8aaa956e880d86776416a23ce60c83.zip
spike-f47782cf9e8aaa956e880d86776416a23ce60c83.tar.gz
spike-f47782cf9e8aaa956e880d86776416a23ce60c83.tar.bz2
refactor: Rename parameter addr to original_addr in load_slow_path()
Diffstat (limited to 'riscv/mmu.cc')
-rw-r--r--riscv/mmu.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/mmu.cc b/riscv/mmu.cc
index 11f5832..2e7741f 100644
--- a/riscv/mmu.cc
+++ b/riscv/mmu.cc
@@ -223,9 +223,9 @@ void mmu_t::load_slow_path_intrapage(reg_t len, uint8_t* bytes, mem_access_info_
}
}
-void mmu_t::load_slow_path(reg_t addr, reg_t len, uint8_t* bytes, xlate_flags_t xlate_flags)
+void mmu_t::load_slow_path(reg_t original_addr, reg_t len, uint8_t* bytes, xlate_flags_t xlate_flags)
{
- auto access_info = generate_access_info(addr, LOAD, xlate_flags);
+ auto access_info = generate_access_info(original_addr, LOAD, xlate_flags);
reg_t transformed_addr = access_info.transformed_vaddr;
check_triggers(triggers::OPERATION_LOAD, transformed_addr, access_info.effective_virt);