Litrally almost functional PS/2 driver. #19
|
@ -378,6 +378,7 @@ fn run(release: bool, target: Target, do_accel: bool) -> Result<(), Error> {
|
||||||
};
|
};
|
||||||
let (mut com, mut com2) = (Command::new(target_str), Command::new(target_str));
|
let (mut com, mut com2) = (Command::new(target_str), Command::new(target_str));
|
||||||
let ovmf_path = fetch_ovmf(target);
|
let ovmf_path = fetch_ovmf(target);
|
||||||
|
#[cfg(target_arch = "x86_64")]
|
||||||
let accel = if do_accel {
|
let accel = if do_accel {
|
||||||
let supported = String::from_utf8(
|
let supported = String::from_utf8(
|
||||||
com2.args(["--accel", "help"])
|
com2.args(["--accel", "help"])
|
||||||
|
@ -413,6 +414,8 @@ fn run(release: bool, target: Target, do_accel: bool) -> Result<(), Error> {
|
||||||
} else {
|
} else {
|
||||||
"accel=tcg"
|
"accel=tcg"
|
||||||
};
|
};
|
||||||
|
#[cfg(not(target_arch = "x86_64"))]
|
||||||
|
let accel = "accel=tcg";
|
||||||
|
|
||||||
match target {
|
match target {
|
||||||
Target::X86_64 | Target::X86_64Avx2 => {
|
Target::X86_64 | Target::X86_64Avx2 => {
|
||||||
|
|
Loading…
Reference in a new issue