> 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:04:28 up 2 days,  8:18,  1 user,  load average: 0.34, 0.38, 0.33
This commit is contained in:
tracer-ics2023
2024-09-14 18:04:29 +08:00
committed by zzy
parent f430b616bd
commit 25384f5763

View File

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