* [RFA]rs6000-tdep.c: add nofp register set
@ 2002-04-17 13:28 Elena Zannoni
2002-04-17 14:03 ` Kevin Buettner
0 siblings, 1 reply; 3+ messages in thread
From: Elena Zannoni @ 2002-04-17 13:28 UTC (permalink / raw)
To: gdb-patches
Some ppc variants (855, 823) don't have a floating point unit.
I've just added a register set to be used for such variants.
Elena
2000-04-17 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
(registers_powerpc_nofp): New register set for processors
without floating point unit.
Index: rs6000-tdep.c
===================================================================
RCS file: /cvs/uberbaum/gdb/rs6000-tdep.c,v
retrieving revision 1.55
diff -u -p -r1.55 rs6000-tdep.c
--- rs6000-tdep.c 12 Apr 2002 19:48:36 -0000 1.55
+++ rs6000-tdep.c 17 Apr 2002 20:20:09 -0000
@@ -2074,6 +2074,17 @@ rs6000_convert_from_func_ptr_addr (CORE_
/* 56 */ F(f24),F(f25),F(f26),F(f27),F(f28),F(f29),F(f30),F(f31), \
/* 64 */ R(pc), R(ps)
+#define COMMON_UISA_NOFP_REGS \
+ /* 0 */ R(r0), R(r1), R(r2), R(r3), R(r4), R(r5), R(r6), R(r7), \
+ /* 8 */ R(r8), R(r9), R(r10),R(r11),R(r12),R(r13),R(r14),R(r15), \
+ /* 16 */ R(r16),R(r17),R(r18),R(r19),R(r20),R(r21),R(r22),R(r23), \
+ /* 24 */ R(r24),R(r25),R(r26),R(r27),R(r28),R(r29),R(r30),R(r31), \
+ /* 32 */ R0, R0, R0, R0, R0, R0, R0, R0, \
+ /* 40 */ R0, R0, R0, R0, R0, R0, R0, R0, \
+ /* 48 */ R0, R0, R0, R0, R0, R0, R0, R0, \
+ /* 56 */ R0, R0, R0, R0, R0, R0, R0, R0, \
+ /* 64 */ R(pc), R(ps)
+
/* UISA-level SPRs for PowerPC. */
#define PPC_UISA_SPRS \
/* 66 */ R4(cr), R(lr), R(ctr), R4(xer), R4(fpscr)
@@ -2121,6 +2132,14 @@ static const struct reg registers_powerp
COMMON_UISA_REGS,
PPC_UISA_SPRS,
PPC_ALTIVEC_REGS
+};
+
+/* PowerPC UISA - a PPC processor as viewed by user-level
+ code, but without floating point registers. */
+static const struct reg registers_powerpc_nofp[] =
+{
+ COMMON_UISA_NOFP_REGS,
+ PPC_UISA_SPRS
};
/* IBM PowerPC 403. */
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA]rs6000-tdep.c: add nofp register set
2002-04-17 13:28 [RFA]rs6000-tdep.c: add nofp register set Elena Zannoni
@ 2002-04-17 14:03 ` Kevin Buettner
2002-04-18 8:10 ` Elena Zannoni
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Buettner @ 2002-04-17 14:03 UTC (permalink / raw)
To: Elena Zannoni, gdb-patches
On Apr 17, 4:27pm, Elena Zannoni wrote:
> Some ppc variants (855, 823) don't have a floating point unit.
> I've just added a register set to be used for such variants.
>
> Elena
>
> 2000-04-17 Elena Zannoni <ezannoni@redhat.com>
>
> * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
> (registers_powerpc_nofp): New register set for processors
> without floating point unit.
Okay.
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA]rs6000-tdep.c: add nofp register set
2002-04-17 14:03 ` Kevin Buettner
@ 2002-04-18 8:10 ` Elena Zannoni
0 siblings, 0 replies; 3+ messages in thread
From: Elena Zannoni @ 2002-04-18 8:10 UTC (permalink / raw)
To: Kevin Buettner; +Cc: gdb-patches
Kevin Buettner writes:
> On Apr 17, 4:27pm, Elena Zannoni wrote:
>
> > Some ppc variants (855, 823) don't have a floating point unit.
> > I've just added a register set to be used for such variants.
> >
> > Elena
> >
> > 2000-04-17 Elena Zannoni <ezannoni@redhat.com>
> >
> > * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
> > (registers_powerpc_nofp): New register set for processors
> > without floating point unit.
>
> Okay.
>
> Kevin
Thanks. Committed.
Elena
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-04-18 15:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-17 13:28 [RFA]rs6000-tdep.c: add nofp register set Elena Zannoni
2002-04-17 14:03 ` Kevin Buettner
2002-04-18 8:10 ` Elena Zannoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox