diff options
Diffstat (limited to 'sim/bfin/interp.c')
-rw-r--r-- | sim/bfin/interp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/bfin/interp.c b/sim/bfin/interp.c index d0a4e22..583b82e 100644 --- a/sim/bfin/interp.c +++ b/sim/bfin/interp.c @@ -594,8 +594,8 @@ bfin_syscall (SIM_CPU *cpu) { tbuf += sprintf (tbuf, "%lu (error = %i)", sc.result, sc.errcode); SET_DREG (0, sc.result); - /* Blackfin libgloss only expects R0 to be updated, not R1. */ - /*SET_DREG (1, sc.errcode);*/ + SET_DREG (1, sc.result2); + SET_DREG (2, sc.errcode); } TRACE_SYSCALL (cpu, "%s", _tbuf); |