* target.h (enum target_object): Add TARGET_OBJECT_SPU.
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 12 Jun 2007 14:35:26 +0000 (14:35 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 12 Jun 2007 14:35:26 +0000 (14:35 +0000)
commit23d964e7b6625bec3822bcb9613f65362b9b3026
treec9c8d4a9f98b11ad39dc14dddc8f41374747fc33
parent374c1d382bcb2271b3a39ee369717f255ca0777a
* target.h (enum target_object): Add TARGET_OBJECT_SPU.
* spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.

* spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
(enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
* spu-tdep.c (infospucmdlist): New variable.
(spu_register_name): Handle additional pseudo registers.
(spu_register_type): Likewise.
(spu_pseudo_register_read): Likewise.
(spu_pseudo_register_write): Likewise.
(spu_pseudo_register_read_spu): New function.
(spu_pseudo_register_write_spu): Likewise.
(info_spu_event_command): New function.
(info_spu_signal_command): Likewise.
(info_spu_mailbox_list): Likewise.
(info_spu_mailbox_command): Likewise.
(spu_mfc_get_bitfield): Likewise.
(info_spu_dma_cmdlist): Likewise.
(info_spu_dma_command): Likewise.
(info_spu_proxydma_command): Likewise.
(info_spu_command): Likewise.
(_initialize_spu_tdep): Install "info spu" commands.

testsuite/ChangeLog:

* gdb.arch/spu-info.exp: New testcase.
* gdb.arch/spu-info.c: New file.

doc/ChangeLog:

* gdb.texinfo (Architectures): Add new SPU section to document
Cell Broadband Engine SPU architecture specific commands.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/spu-linux-nat.c
gdb/spu-tdep.c
gdb/spu-tdep.h
gdb/target.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/spu-info.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/spu-info.exp [new file with mode: 0644]