提交 dd06aa49 编写于 作者: W wangkaifan

misc: fix sfence detection logic

上级 7782f543
...@@ -105,7 +105,9 @@ static inline void pmem_write(paddr_t addr, word_t data, int len) { ...@@ -105,7 +105,9 @@ static inline void pmem_write(paddr_t addr, word_t data, int len) {
void rtl_sfence() { void rtl_sfence() {
#ifdef ENABLE_DISAMBIGUATE #ifdef ENABLE_DISAMBIGUATE
memset(pmem_dirty, 0, sizeof(sizeof(bool) * PMEM_SIZE)); for (uint64_t i = 0; i < PMEM_SIZE; i++) {
pmem_dirty[i] = 0;
}
#endif #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册