This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Fix register order in reg-spu.dat


Hello,

this fixes a mismatch between the order of registers in reg-spu.dat
and the register numbering used in spu-low.c (and GDB).  The ID 
register should be number 128, and NPC number 129; these two are
swapped in reg-spu.dat.

Thanks to Emi Suzuki for reporting this problem.

Tested on spu-elf via gdbserver; committed to mainline.

Bye,
Ulrich

ChangeLog:

	* regformats/reg-spu.dat: Fix order of npc, id registers.

Index: gdb/regformats/reg-spu.dat
===================================================================
RCS file: /cvs/src/src/gdb/regformats/reg-spu.dat,v
retrieving revision 1.1
diff -c -p -r1.1 reg-spu.dat
*** gdb/regformats/reg-spu.dat	22 Nov 2006 17:34:15 -0000	1.1
--- gdb/regformats/reg-spu.dat	23 Jul 2007 20:39:33 -0000
*************** expedite:r0,r1,npc
*** 128,132 ****
  128:r125
  128:r126
  128:r127
- 32:npc
  32:id
--- 128,132 ----
  128:r125
  128:r126
  128:r127
  32:id
+ 32:npc
-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]