target-tricore: fix save_context_upper using env->PSW
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Tue, 16 Feb 2016 21:33:13 +0000 (22:33 +0100)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Thu, 25 Feb 2016 11:51:27 +0000 (12:51 +0100)
commit723733575b90089c51adefde41875310052031c2
tree93c75ade668085f0a8b570ac508f59bf838812ac
parentd159148b63cb31ba086d26f1b7da24c0614ca856
target-tricore: fix save_context_upper using env->PSW

If the cached bits for C, V, SV, AV, or SAV were set, they would
not be saved during the context save since env->PSW was stored instead
of properly reading them using psw_read().

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
target-tricore/op_helper.c