Re: [PATCH] Detect 64-bit-ness in PowerPC Book III-E

Yao Qi
2014-12-19T08:06:58Z

Ulrich Weigand <uweigand@de.ibm.com> writes:

> Hmm. If it actually is Book III-S, then bit 32 is "reserved", so I'm
> not sure including it in the check is safe.

Yeah, in fact, I borrow such check from strace 4.9.

>
> Anton, what would you suggest a user program to use to safely detect
> whether a ptrace-attached child is 64-bit or not, on either Book III-S
> or Book III-E systems?

Maybe, we can first detect the Book III-S vs. Book III-E, and then
detect 64-bit-ness. However, I go through PowerISA, but don't find a
way to differentiate Book III-S and Book III-E.

>
> In any case, whatever we do, we should do both in native GDB and
> gdbserver.

Agreed.

--
Yao (齐尧)