target-s390x: implement load-and-trap facility
commit782a8479522f8e4a596f968e4acad5c10b77e061
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 3 Jun 2015 21:09:51 +0000 (3 23:09 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 4 Jun 2015 23:37:59 +0000 (5 01:37 +0200)
tree14765b8b1fd921edddeb0f93a051fe836dd29f18
parent375ee58bedcda359011fe7fa99e0647f66f9ffa0
target-s390x: implement load-and-trap facility

At the same time move the trap code from op_ct into gen_trap and use it
for all new functions. The value needs to be stored back to register
before the exception, but also before the brcond (as we don't use
temp locals). That's why we can't use wout helper.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-s390x/insn-data.def
target-s390x/translate.c