aboutsummaryrefslogtreecommitdiff
path: root/riscv/mmu.h
diff options
context:
space:
mode:
authorRyan Buchner <ryan.buchner@arilinc.com>2022-04-21 11:19:54 -0700
committerRyan Buchner <ryan.buchner@arilinc.com>2022-04-21 12:58:39 -0700
commitc52ae38779ae027db7034abd9b0a61970df8dd45 (patch)
tree3937fec8e21fbcfd35fa8463e55a17ee6caf3c39 /riscv/mmu.h
parentb9fc8e4e9087a6064dfcc627efabbe3fd4bdc309 (diff)
downloadspike-c52ae38779ae027db7034abd9b0a61970df8dd45.zip
spike-c52ae38779ae027db7034abd9b0a61970df8dd45.tar.gz
spike-c52ae38779ae027db7034abd9b0a61970df8dd45.tar.bz2
Add require_alignment tag to store_func
Will be used similarly as in load_func.
Diffstat (limited to 'riscv/mmu.h')
-rw-r--r--riscv/mmu.h2
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; \