This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch] MIPS64: Use non-trapping "daddu" in macro expansions
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- To: Ralf Baechle <ralf at uni-koblenz dot de>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 10 Jul 2002 15:05:25 +0200 (MET DST)
- Subject: Re: [patch] MIPS64: Use non-trapping "daddu" in macro expansions
- Organization: Technical University of Gdansk
On Wed, 10 Jul 2002, Ralf Baechle wrote:
> > I believe it's incorrect to use "dadd" to calculate addresses as we don't
> > handle overflow traps in any manner. That is strictly system-dependent
> > and should be handled at the compiler level, anyway. I propose switching
> > to "daddu".
>
> The rationale behind this was to trap wraparounds of address between kernel
> space and user space.
If an incorrect address is dereferenced afterwards in the user mode, it
will fault anyway. For the kernel mode, I don't think such actions should
be coded implicitly.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +