[RFC/patch 5.1] change NUM_REALREGS to NUM_REGS
Elena Zannoni
ezannoni@cygnus.com
Wed Jan 2 08:58:00 GMT 2002
Andrew Volkov writes:
> The attached patch replace NUM_REALREGS macro to NUM_REGS,
> and NUM_REGS to NUM_REGS + NUM_PSEUDO_REGS.
>
> I need this for H8300 maltiarching.
>
> Any suggestions/comments ?
>
> Andrey Volkov
>
Andrey,
You should also eliminate the definitions of the NUM_REALREGS macro.
One definition of that macro is in config/h8300/tm-h8300.h (defined to
10). Hmm, h8300-tdep.c defines NUM_REGS to 11, instead. Oh, and look(!)
config/tm-h8300.h defines NUM_REGS to 13.
You also compile remote-e7000.c when the target triplet is one of
sh-*-hms, sh-*-coff*, sh-*-elf*, sh-*-linux*. The definition of
NUM_REALREGS then comes from config/sh/tm-sh.h (in this case is 59).
Pretty messy. Maybe Kazu has some more insights on the h8300
definitions of NUM_REGS.
Elena
More information about the Gdb-patches
mailing list