diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-04 22:24:03 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-04 22:24:03 -0500 |
commit | bc273e17510c7680bcffee75858d374aa93f7e4b (patch) | |
tree | 70fafc5ebb2b4104b5d0169578f8e24f4a497ba4 /sim/bfin/dv-bfin_trace.c | |
parent | ac8eefeb243ad326946c3b2b78ba5d1367fe0f99 (diff) | |
download | binutils-gdb-bc273e17510c7680bcffee75858d374aa93f7e4b.tar.gz |
sim: unify min/max macros
Import defines from gdb/defs.h to the sim core so we can delete the
various copies that already exist.
Diffstat (limited to 'sim/bfin/dv-bfin_trace.c')
-rw-r--r-- | sim/bfin/dv-bfin_trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/bfin/dv-bfin_trace.c b/sim/bfin/dv-bfin_trace.c index 2c44d1d23d0..ebb2ada4887 100644 --- a/sim/bfin/dv-bfin_trace.c +++ b/sim/bfin/dv-bfin_trace.c @@ -131,7 +131,7 @@ bfin_trace_io_read_buffer (struct hw *me, void *dest, /* Hardware is limited to 16 entries, so to stay compatible with software, limit the value to 16. For software algorithms that keep reading while (TBUFSTAT != 0), they'll get all of it. */ - value = MIN (TBUF_LEN (trace), 16); + value = min (TBUF_LEN (trace), 16); break; case mmr_offset(tbuf): { |