summaryrefslogtreecommitdiff
path: root/sim/bfin/dv-bfin_mmu.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-04 22:24:03 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-04 22:24:03 -0500
commitbc273e17510c7680bcffee75858d374aa93f7e4b (patch)
tree70fafc5ebb2b4104b5d0169578f8e24f4a497ba4 /sim/bfin/dv-bfin_mmu.c
parentac8eefeb243ad326946c3b2b78ba5d1367fe0f99 (diff)
downloadbinutils-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_mmu.c')
-rw-r--r--sim/bfin/dv-bfin_mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/bfin/dv-bfin_mmu.c b/sim/bfin/dv-bfin_mmu.c
index ceb0e3677aa..b951e9a3162 100644
--- a/sim/bfin/dv-bfin_mmu.c
+++ b/sim/bfin/dv-bfin_mmu.c
@@ -532,7 +532,7 @@ _mmu_check_addr (SIM_CPU *cpu, bu32 addr, bool write, bool inst, int size)
}
else
/* Normalize hit count so hits==2 is always multiple hit exception. */
- hits = MIN (2, hits);
+ hits = min (2, hits);
_mmu_log_fault (cpu, mmu, addr, write, inst, hits == 0, supv, dag1, faults);