On 09/20/2017 10:30 AM, David Hildenbrand wrote: > The STFLE bits for the MSA (extension) facilities simply indicate that > the respective instructions can be executed. The QUERY subfunction can then > be used to identify which features exactly are available. > > Availability of subfunctions can also vary on real hardware. For now, we > simply implement a CPU model without any available subfunctions except > QUERY (which is always around). > > As all MSA functions behave quite similarly, we can use one translation > handler for now. Prepare the code for implementation of actual subfunctions. > > At least MSA is helpful for now, as older Linux kernels require this > facility when compiled for a z9 model. Allow to enable the facilities > for the qemu cpu model. > > Signed-off-by: David Hildenbrand <da...@redhat.com> > --- > target/s390x/Makefile.objs | 2 +- > target/s390x/cpu_models.c | 4 +++ > target/s390x/crypto_helper.c | 65 > ++++++++++++++++++++++++++++++++++++++++++++ > target/s390x/helper.h | 1 + > target/s390x/insn-data.def | 13 +++++++++ > target/s390x/translate.c | 56 ++++++++++++++++++++++++++++++++++++++ > 6 files changed, 140 insertions(+), 1 deletion(-) > create mode 100644 target/s390x/crypto_helper.c
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~