Skip to content

Commit 169dd72

Browse files
committed
Remove the Timer Interrupt Interval because ostest will fail
1 parent f00d40c commit 169dd72

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

riscv_machine.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,10 +1175,7 @@ static int riscv_machine_get_sleep_duration(VirtMachine *s1, int delay)
11751175
if (!(riscv_cpu_get_mip(s) & MIP_STIP)) {
11761176
const int64_t delay2 = m->timecmp - rtc_get_time(m);
11771177
if (delay2 <= 0) {
1178-
static uint64_t t = 0;
1179-
if (t++ % 100 == 0) {
1180-
riscv_cpu_set_mip(s, MIP_STIP);
1181-
}
1178+
riscv_cpu_set_mip(s, MIP_STIP);
11821179
}
11831180
}
11841181
//// End Test
@@ -1233,7 +1230,7 @@ void set_timecmp(RISCVMachine *machine0, uint64_t timecmp) {
12331230
if (machine0 != NULL) { machine = machine0; return; }
12341231
if (machine == NULL) { puts("set_timecmp: machine is null"); return; }
12351232
machine->timecmp = timecmp;
1236-
printf("set_timecmp: timecmp=%p\n", timecmp);
1233+
_info("set_timecmp: timecmp=%p\n", timecmp);
12371234
}
12381235

12391236
// Print to Console

0 commit comments

Comments
 (0)