From 44b30b7f0e6fccb3fc678c84a8c2ad7d19b4a679 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 31 Jan 2021 15:13:31 -0500 Subject: [PATCH] sim: v850: fix handling of SYS_times My recent rewrite of the nltvals generator fixed a bug where SYS_times was not being exported for v850. But that in turn uncovered this bug where the SYS_times codepath had a compile error. --- sim/v850/ChangeLog | 5 ++++- sim/v850/simops.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog index b99ca24dcfb..b7b2cfd5670 100644 --- a/sim/v850/ChangeLog +++ b/sim/v850/ChangeLog @@ -1,3 +1,7 @@ +2021-01-31 Mike Frysinger + + * simops.c (OP_10007E0): Change reterr to RETERR. + 2021-01-30 Mike Frysinger * interp.c (sim_open): Delete STATE_WATCHPOINTS (sd)->sizeof_pc. @@ -1702,4 +1706,3 @@ Wed Aug 28 13:53:22 1996 Jeffrey A Law (law@cygnus.com) * ChangeLog, Makefile.in, configure, configure.in, v850_sim.h, gencode.c, interp.c, simops.c: Created. - diff --git a/sim/v850/simops.c b/sim/v850/simops.c index 93185b6de66..421afeef6e4 100644 --- a/sim/v850/simops.c +++ b/sim/v850/simops.c @@ -1904,7 +1904,7 @@ OP_10007E0 (void) store_mem (PARM1 + 4, 4, tms.tms_stime); store_mem (PARM1 + 8, 4, tms.tms_cutime); store_mem (PARM1 + 12, 4, tms.tms_cstime); - reterr = errno; + RETERR = errno; break; } #endif -- 2.30.2