We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4433ca commit b27fcd1Copy full SHA for b27fcd1
sw/host/opentitanlib/src/transport/qemu/mod.rs
@@ -12,6 +12,8 @@ pub mod uart;
12
use std::cell::RefCell;
13
use std::rc::Rc;
14
use std::str::FromStr;
15
+use std::thread;
16
+use std::time::Duration;
17
18
use anyhow::{Context, bail};
19
@@ -173,6 +175,10 @@ impl Qemu {
173
175
let reset = QemuReset::new(Rc::clone(&monitor));
174
176
let reset = Rc::new(reset);
177
178
+ // QEMU polls once per second to see if PTYs have been connected to. We must wait that
179
+ // full second to be sure that QEMU is watching all of them.
180
+ thread::sleep(Duration::from_secs(1));
181
+
182
Ok(Qemu {
183
monitor,
184
reset,
0 commit comments