target-mips: fix save_cpu_state() calls
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 17 Jan 2011 18:29:34 +0000 (19:29 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 24 Jan 2011 19:52:04 +0000 (20:52 +0100)
commitff0241c546c6d4ce6037efad5446200f03d1d7ae
tree71d971ea968100e510264d53667198c94e909c95
parentd2829d69d6b052efbea3667f007c286f690307d3
target-mips: fix save_cpu_state() calls

The rule is:
- don't save PC if the exception is only triggered by softmmu.
- save PC if the exception can be triggered by an helper.

Fix a 64-bit kernel crash when loading modules.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/translate.c