taget-ppc: Fix read access to IBAT registers higher than IBAT3
commit3ede8f699645f4ca7cdbc40d8139e5a0275b4805
authorJulio Guerra <julio@farjump.io>
Wed, 14 Oct 2015 17:43:19 +0000 (14 19:43 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 6 Nov 2015 12:42:38 +0000 (6 15:42 +0300)
tree6f2711f4b219da38e51aad88bb6b97f30b18017b
parent68851b98e5bf6d397498b74f1776801274ab8d48
taget-ppc: Fix read access to IBAT registers higher than IBAT3

Fix the index used to read the IBAT's vector which results in IBAT0..3 instead
of IBAT4..N.

The bug appeared by saving/restoring contexts including IBATs values.

Signed-off-by: Julio Guerra <julio@farjump.io>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target-ppc/translate_init.c