File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 99//!
1010//! ## TL;DR
1111//!
12- //! ```rust
12+ //! ```ignore
1313//! use qemu_exit::QEMUExit;
1414//!
1515//! #[cfg(target_arch = "aarch64")]
3838//!
3939//! Pass the `-semihosting` argument to the QEMU invocation, e.g.
4040//!
41- //! ```
41+ //! ```bash
4242//! qemu-system-aarch64 -M raspi3 -serial stdio -semihosting -kernel kernel8.img
4343//! ```
4444//!
4545//! ### AArch32
4646//!
4747//! Pass the `-semihosting` argument to the QEMU invocation, e.g.
4848//!
49- //! ```
49+ //! ```bash
5050//! qemu-system-arm -m 16M -nographic -M mps2-an500 -cpu cortex-m7 -serial mon:stdio -semihosting -kernel kernel.img
5151//! ```
5252//!
5353//! ### RISCV64
5454//!
5555//! You need to chose a machine with the `sifive_test` device, for exemple `-M virt`:
5656//!
57- //! ```
57+ //! ```bash
5858//! qemu-system-riscv64 -M virt -nographic -monitor none -serial stdio -kernel kernel.elf
5959//! ```
6060//!
6161//! ### x86_64
6262//!
6363//! Add the special ISA debug exit device by passing the flags:
6464//!
65- //! ```
65+ //! ```bash
6666//! -device isa-debug-exit,iobase=0xf4,iosize=0x04
6767//! ```
6868//!
7373//! binary-OR'ed with `0x1`. This is hardcoded and therefore, with `isa-debug-exit`, it is not
7474//! possible to let QEMU invoke `exit(0)`.
7575//!
76- //! ```rust
76+ //! ```ignore
7777//! let qemu_exit_handle = qemu_exit::X86::new(io_base, custom_exit_success);
7878//! ```
7979//!
You can’t perform that action at this time.
0 commit comments