commit | eeca2b2966a24f1575b9c693b049a4c0b9b49807 | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Tue Jun 14 17:24:51 2016 -0700 |
committer | Andreas Gampe <agampe@google.com> | Tue Jun 14 17:24:51 2016 -0700 |
tree | 1bd6ad97e477cd70af218903b4dc7f306b1e7b1c | |
parent | 4070f3fb514feb3f387e5cc312c148d82d4f5a60 [diff] |
ART: Empty out sa_mask in ArmInstructionSetFeatures For sdiv hardware detection by signal, empty out sa_mask. Bug: 29282211 Change-Id: I7c85273f95089fcce75319843e5921842ea6df4d
diff --git a/runtime/arch/arm/instruction_set_features_arm.cc b/runtime/arch/arm/instruction_set_features_arm.cc index ffac030..c3a5829 100644 --- a/runtime/arch/arm/instruction_set_features_arm.cc +++ b/runtime/arch/arm/instruction_set_features_arm.cc
@@ -206,6 +206,7 @@ struct sigaction sa, osa; sa.sa_flags = SA_ONSTACK | SA_RESTART | SA_SIGINFO; sa.sa_sigaction = bad_divide_inst_handle; + sigemptyset(&sa.sa_mask); sigaction(SIGILL, &sa, &osa); bool has_div = false;