PPC: Fix lswx bounds checks
commit488661ee9dd300110a6612d52fe68e2bb3539a5f
authorAlexander Graf <agraf@suse.de>
Wed, 11 Nov 2015 22:49:40 +0000 (11 22:49 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 12 Nov 2015 02:15:54 +0000 (12 13:15 +1100)
treeb0ef5bce6ec8512399094513e4fe04b33a8e97ce
parent4248b336d3c1b74e343842c5b478b165d75f5ce8
PPC: Fix lswx bounds checks

The lswx instruction checks whether the desired string actually fits
into all defined registers. Unfortunately it does the calculation wrong,
resulting in illegal instruction traps for loads that really should fit.

Fix it up, making Mac OS happier.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/mem_helper.c