Make state mapping work on non-x86 architectures.

This commit is contained in:
losfair
2019-10-07 23:00:37 +08:00
parent 80d6c4cbc0
commit e0e7d58313
2 changed files with 14 additions and 3 deletions

View File

@ -198,7 +198,7 @@ unsafe fn with_breakpoint_map<R, F: FnOnce(Option<&BreakpointMap>) -> R>(f: F) -
#[cfg(not(target_arch = "x86_64"))]
pub fn allocate_and_run<R, F: FnOnce() -> R>(size: usize, f: F) -> R {
unimplemented!("allocate_and_run only supported on x86_64");
f()
}
#[cfg(target_arch = "x86_64")]