提交 c31b249c 编写于 作者: Z Zihao Yu

memory,vaddr: fix wrong type for vaddr_write()

上级 b1743d36
......@@ -50,7 +50,7 @@ uint_type(bits) concat3(vaddr_, name, bits) (vaddr_t addr) { \
make_vaddr_read_template(bits, ifetch, MEM_TYPE_IFETCH) \
make_vaddr_read_template(bits, read, MEM_TYPE_READ) \
void concat(vaddr_write, bits) (vaddr_t addr, uint_type(bits) data) { \
int ret = isa_vaddr_check(addr, MEM_TYPE_READ, bits / 8); \
int ret = isa_vaddr_check(addr, MEM_TYPE_WRITE, bits / 8); \
if (ret == MEM_RET_OK) { \
paddr_write(addr, data, bits / 8); \
} else if (ret == MEM_RET_NEED_TRANSLATE) { \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册