From 7337842ff927b589cd69b021288a7eb9a9f9041e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 4 Mar 2018 01:05:18 +0800 Subject: [PATCH] runtime: add a missing overflow flag reset --- artiq/firmware/ksupport/rtio.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/firmware/ksupport/rtio.rs b/artiq/firmware/ksupport/rtio.rs index 0c95842ad..19b28df3a 100644 --- a/artiq/firmware/ksupport/rtio.rs +++ b/artiq/firmware/ksupport/rtio.rs @@ -96,6 +96,7 @@ pub extern fn input_timestamp(timeout: i64, channel: i32) -> u64 { } if status & RTIO_I_STATUS_OVERFLOW != 0 { + csr::rtio::i_overflow_reset_write(1); raise!("RTIOOverflow", "RTIO input overflow on channel {0}", channel as i64, 0, 0);