diff options
author | Ryan Buchner <ryan.buchner@arilinc.com> | 2022-04-21 11:19:54 -0700 |
---|---|---|
committer | Ryan Buchner <ryan.buchner@arilinc.com> | 2022-04-21 12:58:39 -0700 |
commit | c52ae38779ae027db7034abd9b0a61970df8dd45 (patch) | |
tree | 3937fec8e21fbcfd35fa8463e55a17ee6caf3c39 | |
parent | b9fc8e4e9087a6064dfcc627efabbe3fd4bdc309 (diff) | |
download | riscv-isa-sim-c52ae38779ae027db7034abd9b0a61970df8dd45.zip riscv-isa-sim-c52ae38779ae027db7034abd9b0a61970df8dd45.tar.gz riscv-isa-sim-c52ae38779ae027db7034abd9b0a61970df8dd45.tar.bz2 |
Add require_alignment tag to store_func
Will be used similarly as in load_func.
-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 dcf338f..03a2d39 100644 --- a/riscv/mmu.h +++ b/riscv/mmu.h @@ -147,7 +147,7 @@ public: // template for functions that store an aligned value to memory #define store_func(type, prefix, xlate_flags) \ - void prefix##_##type(reg_t addr, type##_t val, bool actually_store=true) { \ + void prefix##_##type(reg_t addr, type##_t val, bool actually_store=true, bool require_alignment=false) { \ if (unlikely(addr & (sizeof(type##_t)-1))) \ return misaligned_store(addr, val, sizeof(type##_t), xlate_flags); \ reg_t vpn = addr >> PGSHIFT; \ |