diff options
author | Ryan Buchner <ryan.buchner@arilinc.com> | 2022-04-21 11:21:27 -0700 |
---|---|---|
committer | Ryan Buchner <ryan.buchner@arilinc.com> | 2022-04-21 13:00:07 -0700 |
commit | 004bdc492710e0abd23771fdba33097a9ae1f792 (patch) | |
tree | 8b3f85e27e4ed3434d14a563c594b38ab4dc68f9 /riscv | |
parent | c52ae38779ae027db7034abd9b0a61970df8dd45 (diff) | |
download | spike-004bdc492710e0abd23771fdba33097a9ae1f792.zip spike-004bdc492710e0abd23771fdba33097a9ae1f792.tar.gz spike-004bdc492710e0abd23771fdba33097a9ae1f792.tar.bz2 |
Set require alignment to true on the 'fake' store in amo_func.
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/mmu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/mmu.h b/riscv/mmu.h index 03a2d39..c08acd3 100644 --- a/riscv/mmu.h +++ b/riscv/mmu.h @@ -196,7 +196,7 @@ public: template<typename op> \ type##_t amo_##type(reg_t addr, op f) { \ convert_load_traps_to_store_traps({ \ - store_##type(addr, 0, false); \ + store_##type(addr, 0, false, true); \ auto lhs = load_##type(addr, true); \ store_##type(addr, f(lhs)); \ return lhs; \ |