Skip to content

Commit 8cfd919

Browse files
committed
Temporary hack until I can clean up the RTC code.
1 parent c7c1408 commit 8cfd919

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hw/arm/prusa/stm32f407/stm32f2xx_rtc.c

+8
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,14 @@ f2xx_rtc_write(void *arg, hwaddr addr, uint64_t data, unsigned int size)
353353
DPRINTF("f2xx rtc WUT isr lowered\n");
354354
qemu_irq_lower(s->wut_irq);
355355
}
356+
if (data & (1<<7))
357+
{
358+
data |= (1<<6);
359+
}
360+
else
361+
{
362+
data &= ~(1<<6);
363+
}
356364
break;
357365
case R_RTC_PRER:
358366
/*

0 commit comments

Comments
 (0)