> 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
 18:07:44 up 2 days,  8:21,  1 user,  load average: 0.39, 0.44, 0.36
This commit is contained in:
tracer-ics2023
2024-09-14 18:07:44 +08:00
committed by zzy
parent 80523718d9
commit eff431fde2
3 changed files with 4 additions and 7 deletions

View File

@ -59,7 +59,7 @@ word_t map_read(paddr_t addr, int len, IOMap *map) {
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);
printf("map_read: %p, %d\n", map->space + offset, ret);
//printf("map_read: %p, %d\n", map->space + offset, ret);
return ret;
}

View File

@ -26,7 +26,7 @@ static void rtc_io_handler(uint32_t offset, int len, bool is_write) {
printf("rtc_io_handle %ld\n", us);
rtc_port_base[0] = (uint32_t)us;
rtc_port_base[1] = us >> 32;
printf("rtc_port_handle %d, %d [%p]\n", rtc_port_base[0], rtc_port_base[1], rtc_port_base);
//printf("rtc_port_handle %d, %d [%p]\n", rtc_port_base[0], rtc_port_base[1], rtc_port_base);
}
}