]> git.sur5r.net Git - u-boot/commit
MIPS: Use unchecked immediate addition/subtraction
authorPaul Burton <paul.burton@imgtec.com>
Mon, 16 May 2016 09:52:10 +0000 (10:52 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 20 May 2016 23:36:39 +0000 (01:36 +0200)
commit9f8ac82452d8bb5eccc38a0c3c0a8f82e1774452
tree2cff6d80395b13038d1c813955d17d041c1c462d
parent400df3099896bdd43dd72dbb5d3930cf573d14f0
MIPS: Use unchecked immediate addition/subtraction

In MIPS assembly there have historically been 2 variants of immediate
addition - the standard "addi" which traps if an overflow occurs, and
the unchecked "addiu" which does not trap on overflow. In release 6 of
the MIPS architecture the trapping variants of immediate addition &
subtraction have been removed. In preparation for supporting MIPSr6,
stop using the trapping instructions from assembly & switch to their
unchecked variants.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
arch/mips/cpu/start.S
arch/mips/lib/cache_init.S