Thread (2 messages) flat view 2 messages, 2 authors, 2018-11-07

Re: [PATCH] selftests/powerpc: Fix wild_bctr test to work on BE

From: Segher Boessenkool <hidden>
Date: 2018-11-07 17:50:19

Hi!

On Wed, Nov 07, 2018 at 09:17:23PM +1100, Michael Ellerman wrote:
The selftest I recently added to test branching to an out-of-bounds
NIP doesn't work on big endian. It does fail but not in the right way.
That is it SEGVs trying to load from the opd at BAD_NIP, but it never
gets as far as branching to BAD_NIP.

To fix it we need to create an opd which is reachable but which holds
the bad address.
+#ifdef __BIG_ENDIAN__
Maybe you should test for _CALL_AIXDESC instead?  It is more directly
what you want to know, and it even works correctly in all cases ;-)


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help