libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] Fix word size for MIPS architecture


From: Faraz Shahbazker
Subject: Re: [Libunwind-devel] Fix word size for MIPS architecture
Date: Tue, 2 Dec 2014 11:33:36 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 12/02/2014 02:26 AM, Vicente Olivert Riera wrote:
On 12/02/2014 02:35 AM, Arun Sharma wrote:
For the specific patch you attached to the bug report, assuming n32
has 64 bit registers: Changing unw_word_t to 32 bit will break
interfaces like:

unw_get_reg (unw_cursor_t *cursor, int regnum, unw_word_t *valp)
Uhm..., I don't think so. Take a look to this:

http://www.imgtec.com/mips/architectures/mips64.asp

The last part:

"[...] the architecture features a 32-bit compatibility mode, in which
all registers and addresses are 32-bit wide [...]"
I think Arun is right. The only ABI for mips32 architecture is o32. All others (n64/o64/n32) are for mips64. If a split is made on the basis of architecture, n32 would still have to be implemented within the 64-bit architecture part and unw_word_t would have to be 64-bit.

This should be solved within Xorg build: either by allowing the warning or using --disable-libunwind or an explicit cast to that bit of code.

Regards,
Faraz Shahbazker



reply via email to

[Prev in Thread] Current Thread [Next in Thread]