> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 17:19:43 up 2 days,  7:33,  1 user,  load average: 0.90, 0.46, 0.37
This commit is contained in:
tracer-ics2023
2024-09-14 17:19:44 +08:00
committed by zzy
parent 37a9b3dbb0
commit 857e1b7787

View File

@ -57,8 +57,8 @@ word_t map_read(paddr_t addr, int len, IOMap *map) {
check_bound(map, addr);
paddr_t offset = addr - map->low;
invoke_callback(map->callback, offset, len, false); // prepare data to read
// word_t ret = host_read(map->space + offset, len);
word_t ret = *(word_t*)(map->space + offset);
word_t ret = host_read(map->space + offset, len);
//word_t ret = *(word_t*)(map->space + offset);
printf("map_read: %p, %d\n", map->space + offset, ret);
return ret;
}