mono/mono — pull request #321 by RAOF (2012-06-11 12:13:30+00:00)
Title: AOT CPU safety

I'd like to get AOT-at-install-time happening for Debian and Ubuntu. That requires that mono refuses to load AOT images which contain instructions that the current processor doesn't support - people can and do shift a Debian install from machine to machine, and giving them a SIGILL for their trouble isn't very friendly.

This branch changes the AOT runtime to check the set of compiled options against the set of optimisations the current CPU can't support.

It also modifies the AOT compiler to store the set of SIMD instructions available at compile time, and the AOT runtime to check against those.