Maybe we should have methods to access the registers by their size. Now the general registers are used for default machine registers, am I right? and the fpregs have the double size of general registers? Maybe you should have each register with its type? In cell architecture we have Floating point registers 128bit long, fp registers 64bit long, vector registers 128 bit long... in Power6 maybe there are decimal registers 128bit long...
regards, Jose Flavio Aguilar Paulino On Tue, 2007-07-24 at 09:45 -0400, Andrew Cagney wrote: > David Mosberger-Tang wrote: > > Jose, > > > > On 7/12/07, Jose Flavio Aguilar Paulino <[EMAIL PROTECTED]> wrote: > > > >> - I have to create a new kind of registers VREGS, because PowerPC has > >> vector registers (Special ones 128bits longs only for special > >> instructions) and the libunwind has General Use Registers and Flating > >> Pointer Registers. So I had to create a dummy register array in x86. > > > > Isn't a vector register the same size as a "long double"? If so, do > > you really need to add the *vregs() interface? I think you could just > > use the *fpregs() interface instead. > > This needs to work cross-platform; can you assume that a _host's_ <<long > double>> is a 128-bit type? > > Andrew > _______________________________________________ Libunwind-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/libunwind-devel
