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>
This commit is contained in:
parent
d159148b63
commit
723733575b
@ -2279,7 +2279,7 @@ static bool cdc_zero(target_ulong *psw)
|
||||
static void save_context_upper(CPUTriCoreState *env, int ea)
|
||||
{
|
||||
cpu_stl_data(env, ea, env->PCXI);
|
||||
cpu_stl_data(env, ea+4, env->PSW);
|
||||
cpu_stl_data(env, ea+4, psw_read(env));
|
||||
cpu_stl_data(env, ea+8, env->gpr_a[10]);
|
||||
cpu_stl_data(env, ea+12, env->gpr_a[11]);
|
||||
cpu_stl_data(env, ea+16, env->gpr_d[8]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user