s390x: Implement SAM{24,31,64}
authorAlexander Graf <agraf@suse.de>
Wed, 15 Oct 2014 16:06:07 +0000 (18:06 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Nov 2014 11:01:28 +0000 (12:01 +0100)
commit44dd33ba8f60b5f513399f673351127af16bd304
treebb77e6559a5509aeefd3fbb7f59b42316c63f6d2
parentd4827355f6bccc3255950b952b7bcb1d15e55064
s390x: Implement SAM{24,31,64}

The SAM instructions simply change 2 bits in PSW.MASK to advertise
the current memory mode. While we can't fully guarantee that 31 bit
mode (or even remotely 24 bit mode) actually work correctly, we don't
check whether lpswe modifies these bits, so we shouldn't keep the
guest from executing SAM instructions either.

This patch implements all SAM instrutions with their actual PSW changing
semantics, making more recent Linux kernels boot properly which do issue
a SAM31 call during early boot.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Reviewed-by: Richard Henderson <rth@twiddle.net>
target-s390x/insn-data.def
target-s390x/translate.c