target-mips: save cpu state before calling MSA load and store helpers
authorLeon Alrae <leon.alrae@imgtec.com>
Mon, 16 Mar 2015 16:29:34 +0000 (16:29 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Wed, 18 Mar 2015 09:58:15 +0000 (09:58 +0000)
commit0af7a37054310384e00209e0a43efe95b7c19ef0
treecd3f6cc31de0cf729ae7f4013c2ad0526dbb5667
parenta5f533909e746ca6e534b232fb42c9c6fd81b468
target-mips: save cpu state before calling MSA load and store helpers

PC needs to be saved if an exception can be generated by an helper.
This fixes a problem related to resuming the execution at unexpected address
after an exception (caused by MSA load/store instruction) has been serviced.

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
target-mips/translate.c