]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/bfin/interp.c
sim: common: add align_{up,down} to match gdb
authorMike Frysinger <vapier@gentoo.org>
Tue, 23 Jun 2015 16:32:47 +0000 (22:17 +0545)
committerMike Frysinger <vapier@gentoo.org>
Sun, 3 Jan 2021 01:55:21 +0000 (20:55 -0500)
commit0ede24f2c46d2b888f5e19418e577f3c1110f6a5
treefa410e70e724d2dc61347f24e137b9aecbcc6efb
parent3b47e132c439a5ac477bc07fab06edaa45fa0533
sim: common: add align_{up,down} to match gdb

We have ALIGN_{8,16,PAGE} and FLOOR_PAGE macros (where PAGE is defined as
4k) which were imported from the ppc sim.  But no other sim utilizes these
and hardcoding the sizes in the name is a bit limiting.

Let's delete these and import the two general macros that gdb uses:
align_up(addr, bytes)
align_down(addr, bytes)

This in turn allows us to cut over the Blackfin code immediately.
sim/bfin/ChangeLog
sim/bfin/interp.c
sim/bfin/sim-main.h
sim/common/ChangeLog
sim/common/sim-bits.h