Skip to content

Commit

Permalink
Compile fix for agon-ez80-emulator cli emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
tomm committed Dec 12, 2024
1 parent 64659f2 commit f95db96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions agon-ez80-emulator/src/bin/agon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ fn main() {
let soft_reset = std::sync::Arc::new(std::sync::atomic::AtomicBool::new(false));
let emulator_shutdown = std::sync::Arc::new(std::sync::atomic::AtomicBool::new(false));
let gpios = std::sync::Arc::new(std::sync::Mutex::new(gpio::GpioSet::new()));
let exit_status = std::sync::Arc::new(std::sync::atomic::AtomicI32::new(0));
let ez80_paused = std::sync::Arc::new(std::sync::atomic::AtomicBool::new(false));
let gpios_ = gpios.clone();

let mut unlimited_cpu = false;
Expand Down Expand Up @@ -252,6 +254,8 @@ fn main() {
}

let _cpu_thread = std::thread::spawn(move || {
let _exit_status = exit_status.clone();
let _ez80_paused = ez80_paused.clone();
let mut machine = AgonMachine::new(AgonMachineConfig {
ram_init: RamInit::Random,
uart0_link: Box::new(ChannelSerialLink {
Expand All @@ -260,6 +264,8 @@ fn main() {
}),
uart1_link: Box::new(DummySerialLink {}),
soft_reset,
exit_status: _exit_status,
paused: _ez80_paused,
emulator_shutdown,
gpios: gpios_,
clockspeed_hz: if unlimited_cpu {
Expand Down

0 comments on commit f95db96

Please sign in to comment.