> 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
 16:35:19 up 2 days,  6:49,  1 user,  load average: 0.10, 0.26, 0.27
This commit is contained in:
tracer-ics2023
2024-09-14 16:35:20 +08:00
committed by zzy
parent 33f2d0812f
commit 04ba747c02

View File

@ -23,6 +23,7 @@ static void rtc_io_handler(uint32_t offset, int len, bool is_write) {
assert(offset == 0 || offset == 4);
if (!is_write && offset == 4) {
uint64_t us = get_time();
printf("rtc_io_handle %ld\n", us);
rtc_port_base[0] = (uint32_t)us;
rtc_port_base[1] = us >> 32;
}