Skip to content

Commit bfb8fa6

Browse files
cr: allow setting debug device id in constructor
1 parent a0738f2 commit bfb8fa6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

vm/devices/tdisp/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,13 @@ pub struct TdispHostDeviceTargetEmulator {
123123

124124
impl TdispHostDeviceTargetEmulator {
125125
/// Create a new emulator which runs the TDISP state machine for a synthetic device.
126-
pub fn new(host_interface: Arc<Mutex<dyn TdispHostDeviceInterface>>) -> Self {
126+
pub fn new(
127+
host_interface: Arc<Mutex<dyn TdispHostDeviceInterface>>,
128+
debug_device_id: &str,
129+
) -> Self {
127130
Self {
128131
machine: TdispHostStateMachine::new(host_interface),
129-
debug_device_id: "".to_owned(),
132+
debug_device_id: debug_device_id.to_owned(),
130133
}
131134
}
132135

0 commit comments

Comments
 (0)