2
0
mirror of https://github.com/m-labs/artiq.git synced 2025-02-08 00:25:22 +08:00

runtime: add a missing overflow flag reset

This commit is contained in:
Sebastien Bourdeauducq 2018-03-04 01:05:18 +08:00
parent 87b51cbcc2
commit 7337842ff9

View File

@ -96,6 +96,7 @@ pub extern fn input_timestamp(timeout: i64, channel: i32) -> u64 {
} }
if status & RTIO_I_STATUS_OVERFLOW != 0 { if status & RTIO_I_STATUS_OVERFLOW != 0 {
csr::rtio::i_overflow_reset_write(1);
raise!("RTIOOverflow", raise!("RTIOOverflow",
"RTIO input overflow on channel {0}", "RTIO input overflow on channel {0}",
channel as i64, 0, 0); channel as i64, 0, 0);