X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=sim%2Fv850%2Fsimops.c;h=421afeef6e40103ab59a00fa6894e522c3b2688a;hb=44b30b7f0e6fccb3fc678c84a8c2ad7d19b4a679;hp=b8b3856ec666af2067356263314c231ca2cdae71;hpb=a3976a7c56ec803f6ba141576cc56afe02663a8a;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/v850/simops.c b/sim/v850/simops.c index b8b3856ec6..421afeef6e 100644 --- a/sim/v850/simops.c +++ b/sim/v850/simops.c @@ -7,22 +7,11 @@ #ifdef HAVE_UTIME_H #include #endif - -#ifdef HAVE_TIME_H #include -#endif - #ifdef HAVE_UNISTD_H #include #endif - -#ifdef HAVE_STRING_H #include -#else -#ifdef HAVE_STRINGS_H -#include -#endif -#endif #include "targ-vals.h" @@ -1915,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 @@ -3317,7 +3306,7 @@ v850_bins (SIM_DESC sd, unsigned int source, unsigned int lsb, unsigned int msb, pos = lsb; width = (msb - lsb) + 1; - mask = ~ (-1 << width); + mask = ~ (-(1 << width)); source &= mask; mask <<= pos; result = (* dest) & ~ mask;