Implement stack limit checks for AArch64 (#1573)
This commit implements the stack limit checks in cranelift for the AArch64 backend. This gets the `stack_limit` argument purpose as well as a function's global `stack_limit` directive working for the AArch64 backend. I've tested this locally on some hardware and in an emulator and it looks to be working for basic tests, but I've never really done AArch64 before so some scrutiny on the instructions would be most welcome!
This commit is contained in:
11
build.rs
11
build.rs
@@ -171,7 +171,6 @@ fn write_testsuite_tests(
|
||||
|
||||
/// Ignore tests that aren't supported yet.
|
||||
fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
|
||||
let target = env::var("TARGET").unwrap();
|
||||
match strategy {
|
||||
#[cfg(feature = "lightbeam")]
|
||||
"Lightbeam" => match (testsuite, testname) {
|
||||
@@ -209,16 +208,6 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
|
||||
return true;
|
||||
}
|
||||
|
||||
// FIXME(#1569) stack protection isn't implemented yet and these
|
||||
// tests segfault.
|
||||
("spec_testsuite", "skip_stack_guard_page")
|
||||
| ("spec_testsuite", "stack")
|
||||
| ("misc_testsuite", "stack_overflow")
|
||||
if target.contains("aarch64") =>
|
||||
{
|
||||
return true
|
||||
}
|
||||
|
||||
_ => {}
|
||||
},
|
||||
_ => panic!("unrecognized strategy"),
|
||||
|
||||
Reference in New Issue
Block a user