[Bug libc/23334] misc/tst-set_ppr fails on some POWER systems in 32-bit mode
fweimer at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Jun 27 14:06:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23334
--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Adhemerval Zanella from comment #3)
> (In reply to Florian Weimer from comment #2)
> > (In reply to Adhemerval Zanella from comment #1)
> > > Tulio has already brought this up on libc-alpha with a potentially fix [1],
> > > however it was not fully compatible with powerpcspe build.
> > >
> > > [1] https://sourceware.org/ml/libc-alpha/2018-03/msg00055.html
> >
> > Ah. Would it be possible to simplify matters by using the actual ori
> > instruction, given that mfppr32 is just an alias for it?
>
> The 'or' instruction adjust the PPR's PRI field directly, while the
> 'mfppr32' is an alias for 'mfspr' instruction which transfer the full
> contents of the register. The test uses mfppr{32} to actual check if the
> 'or' instruction is indeed changing the PRI values to the expected value and
> the only other way to query its value I can think of would be using ptrace
> (I think kernel does not provide it through procfs or sysfs).
Oh. What about "mfspr %0,898"? Would that work?
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list