2012-07-27 20:23:05 +00:00
|
|
|
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
|
|
|
|
Original: powerpc-e500l.xml */
|
ChangeLog:
* Makefile.in (ppc_linux_tdep_h): New macro.
(powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
(powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
(powerpc_e500l_c): Likewise.
(ppc-linux-nat.o): Update dependencies.
(ppc-linux-tdep.o): Update dependencies.
(rs6000-tdep.o): Update dependencies.
* ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
(ppc_linux_svr4_fetch_link_map_offsets): Remove.
(ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
(ppc_supply_reg, ppc_collect_reg): Add prototypes.
(tdesc_powerpc_e500): Remove.
* rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
and "features/rs6000/powerpc-altivec64.c".
(ppc_supply_reg, ppc_collect_reg): Make global.
(variants): Use tdesc_powerpc_32 for "powerpc" and
tdesc_powerpc_altivec64 for "powerpc64".
(_initialize_rs6000_tdep): Initialize AltiVec descriptions.
* ppc-linux-tdep.h: New file.
* ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
Include "features/rs6000/powerpc-32l.c".
Include "features/rs6000/powerpc-altivec32l.c".
Include "features/rs6000/powerpc-64l.c".
Include "features/rs6000/powerpc-altivec64l.c".
Include "features/rs6000/powerpc-e500l.c".
(ppc_linux_supply_gregset): New function.
(ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
(ppc32_linux_gregset): Use ppc_linux_supply_gregset.
(ppc64_linux_gregset): Likewise.
(ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
(ppc_linux_trap_reg_p): New function.
(ppc_linux_write_pc): New function.
(ppc_linux_core_read_description): New function.
(ppc_linux_init_abi): Install ppc_linux_write_pc and
ppc_linux_core_read_description. Install orig_r3 and trap
registers if present in the target description.
(_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
* ppc-linux-nat.c: Include "ppc-linux-tdep.h".
(PT_ORIG_R3, PT_TRAP): Define if necessary.
(ppc_register_u_addr): Handle orig_r3 and trap registers.
(fetch_ppc_registers): Likewise.
(store_ppc_registers): Likewise.
(store_register): Likewise.
(ppc_linux_read_description): Check whether AltiVec is supported.
Check whether inferior is 32-bit or 64-bit. Return the appropriate
Linux target description.
* features/Makefile (WHICH): Use rs6000/powerpc-32l and
rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
rs6000/powerpc-e500. Update -expedite variables accordingly.
* features/rs6000/power-spe.xml: Use regnum 73 for "acc".
* features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
* features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
* features/rs6000/powerpc-e500.c: Regenerate.
* features/rs6000/powerpc-32.c: Regenerate.
* features/rs6000/powerpc-64.c: Regenerate.
* features/rs6000/power-linux.xml: New file.
* features/rs6000/power64-linux.xml: New file.
* features/rs6000/powerpc-32l.xml: New file.
* features/rs6000/powerpc-altivec32l.xml: New file.
* features/rs6000/powerpc-64l.xml: New file.
* features/rs6000/powerpc-altivec64l.xml: New file.
* features/rs6000/powerpc-e500l.xml: New file.
* features/rs6000/powerpc-32l.c: New (generated) file.
* features/rs6000/powerpc-altivec32l.c: New (generated) file.
* features/rs6000/powerpc-64l.c: New (generated) file.
* features/rs6000/powerpc-altivec64l.c: New (generated) file.
* features/rs6000/powerpc-e500l.xml: New (generated) file.
* regformats/reg-ppc.dat: Remove.
* regformats/reg-ppc64.dat: Remove.
* regformats/rs6000/powerpc-32.dat: Remove.
* regformats/rs6000/powerpc-64.dat: Remove.
* regformats/rs6000/powerpc-e500.dat: Remove.
* regformats/rs6000/powerpc-32l.dat: New (generated) file.
* regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
* regformats/rs6000/powerpc-64l.dat: New (generated) file.
* regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
* regformats/rs6000/powerpc-e500l.dat: New (generated) file.
gdbserver/ChangeLog:
* configure.srv (powerpc*-*-linux*): Set srv_regobj to
powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
powerpc-64l.o, and powerpc-altivec64l.o.
Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
rs6000/power-linux.xml, and rs6000/power64-linux.xml
to srv_xmlfiles.
* Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
(powerpc-32l.o, powerpc-32l.c): ... these new rules.
(powerpc-32.o, powerpc-32.c): Remove, replace by ...
(powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
(powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
(powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
(reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
(powerpc-64l.o, powerpc-64l.c): ... these new rules.
(powerpc-64.o, powerpc-64.c): Remove, replace by ...
(powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
(clean): Update.
* linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
(init_registers_powerpc_32l): ... this new prototype.
(init_registers_powerpc_32): Remove, replace by ...
(init_registers_powerpc_altivec32l): ... this new prototype.
(init_registers_powerpc_e500): Remove, replace by ...
(init_registers_powerpc_e500l): ... this new prototype.
(init_registers_ppc64): Remove, replace by ...
(init_registers_powerpc_64l): ... this new prototype.
(init_registers_powerpc_64): Remove, replace by ...
(init_registers_powerpc_altivec64l): ... this new prototype.
(ppc_num_regs): Set to 73.
(PT_ORIG_R3, PT_TRAP): Define if necessary.
(ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
(ppc_cannot_store_register): Handle orig_r3 and trap.
(ppc_arch_setup): Update init_registers_... calls.
(ppc_fill_gregset): Handle orig_r3 and trap.
* inferiors.c (clear_inferiors): Reset current_inferior.
2008-05-03 17:16:44 +00:00
|
|
|
|
|
|
|
#include "defs.h"
|
2012-07-27 20:23:05 +00:00
|
|
|
#include "osabi.h"
|
ChangeLog:
* Makefile.in (ppc_linux_tdep_h): New macro.
(powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
(powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
(powerpc_e500l_c): Likewise.
(ppc-linux-nat.o): Update dependencies.
(ppc-linux-tdep.o): Update dependencies.
(rs6000-tdep.o): Update dependencies.
* ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
(ppc_linux_svr4_fetch_link_map_offsets): Remove.
(ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
(ppc_supply_reg, ppc_collect_reg): Add prototypes.
(tdesc_powerpc_e500): Remove.
* rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
and "features/rs6000/powerpc-altivec64.c".
(ppc_supply_reg, ppc_collect_reg): Make global.
(variants): Use tdesc_powerpc_32 for "powerpc" and
tdesc_powerpc_altivec64 for "powerpc64".
(_initialize_rs6000_tdep): Initialize AltiVec descriptions.
* ppc-linux-tdep.h: New file.
* ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
Include "features/rs6000/powerpc-32l.c".
Include "features/rs6000/powerpc-altivec32l.c".
Include "features/rs6000/powerpc-64l.c".
Include "features/rs6000/powerpc-altivec64l.c".
Include "features/rs6000/powerpc-e500l.c".
(ppc_linux_supply_gregset): New function.
(ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
(ppc32_linux_gregset): Use ppc_linux_supply_gregset.
(ppc64_linux_gregset): Likewise.
(ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
(ppc_linux_trap_reg_p): New function.
(ppc_linux_write_pc): New function.
(ppc_linux_core_read_description): New function.
(ppc_linux_init_abi): Install ppc_linux_write_pc and
ppc_linux_core_read_description. Install orig_r3 and trap
registers if present in the target description.
(_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
* ppc-linux-nat.c: Include "ppc-linux-tdep.h".
(PT_ORIG_R3, PT_TRAP): Define if necessary.
(ppc_register_u_addr): Handle orig_r3 and trap registers.
(fetch_ppc_registers): Likewise.
(store_ppc_registers): Likewise.
(store_register): Likewise.
(ppc_linux_read_description): Check whether AltiVec is supported.
Check whether inferior is 32-bit or 64-bit. Return the appropriate
Linux target description.
* features/Makefile (WHICH): Use rs6000/powerpc-32l and
rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
rs6000/powerpc-e500. Update -expedite variables accordingly.
* features/rs6000/power-spe.xml: Use regnum 73 for "acc".
* features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
* features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
* features/rs6000/powerpc-e500.c: Regenerate.
* features/rs6000/powerpc-32.c: Regenerate.
* features/rs6000/powerpc-64.c: Regenerate.
* features/rs6000/power-linux.xml: New file.
* features/rs6000/power64-linux.xml: New file.
* features/rs6000/powerpc-32l.xml: New file.
* features/rs6000/powerpc-altivec32l.xml: New file.
* features/rs6000/powerpc-64l.xml: New file.
* features/rs6000/powerpc-altivec64l.xml: New file.
* features/rs6000/powerpc-e500l.xml: New file.
* features/rs6000/powerpc-32l.c: New (generated) file.
* features/rs6000/powerpc-altivec32l.c: New (generated) file.
* features/rs6000/powerpc-64l.c: New (generated) file.
* features/rs6000/powerpc-altivec64l.c: New (generated) file.
* features/rs6000/powerpc-e500l.xml: New (generated) file.
* regformats/reg-ppc.dat: Remove.
* regformats/reg-ppc64.dat: Remove.
* regformats/rs6000/powerpc-32.dat: Remove.
* regformats/rs6000/powerpc-64.dat: Remove.
* regformats/rs6000/powerpc-e500.dat: Remove.
* regformats/rs6000/powerpc-32l.dat: New (generated) file.
* regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
* regformats/rs6000/powerpc-64l.dat: New (generated) file.
* regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
* regformats/rs6000/powerpc-e500l.dat: New (generated) file.
gdbserver/ChangeLog:
* configure.srv (powerpc*-*-linux*): Set srv_regobj to
powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
powerpc-64l.o, and powerpc-altivec64l.o.
Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
rs6000/power-linux.xml, and rs6000/power64-linux.xml
to srv_xmlfiles.
* Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
(powerpc-32l.o, powerpc-32l.c): ... these new rules.
(powerpc-32.o, powerpc-32.c): Remove, replace by ...
(powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
(powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
(powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
(reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
(powerpc-64l.o, powerpc-64l.c): ... these new rules.
(powerpc-64.o, powerpc-64.c): Remove, replace by ...
(powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
(clean): Update.
* linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
(init_registers_powerpc_32l): ... this new prototype.
(init_registers_powerpc_32): Remove, replace by ...
(init_registers_powerpc_altivec32l): ... this new prototype.
(init_registers_powerpc_e500): Remove, replace by ...
(init_registers_powerpc_e500l): ... this new prototype.
(init_registers_ppc64): Remove, replace by ...
(init_registers_powerpc_64l): ... this new prototype.
(init_registers_powerpc_64): Remove, replace by ...
(init_registers_powerpc_altivec64l): ... this new prototype.
(ppc_num_regs): Set to 73.
(PT_ORIG_R3, PT_TRAP): Define if necessary.
(ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
(ppc_cannot_store_register): Handle orig_r3 and trap.
(ppc_arch_setup): Update init_registers_... calls.
(ppc_fill_gregset): Handle orig_r3 and trap.
* inferiors.c (clear_inferiors): Reset current_inferior.
2008-05-03 17:16:44 +00:00
|
|
|
#include "target-descriptions.h"
|
|
|
|
|
|
|
|
struct target_desc *tdesc_powerpc_e500l;
|
|
|
|
static void
|
|
|
|
initialize_tdesc_powerpc_e500l (void)
|
|
|
|
{
|
|
|
|
struct target_desc *result = allocate_target_description ();
|
|
|
|
struct tdesc_feature *feature;
|
|
|
|
|
|
|
|
set_tdesc_architecture (result, bfd_scan_arch ("powerpc:e500"));
|
|
|
|
|
|
|
|
feature = tdesc_create_feature (result, "org.gnu.gdb.power.core");
|
|
|
|
tdesc_create_reg (feature, "r0", 0, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r1", 1, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r2", 2, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r3", 3, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r4", 4, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r5", 5, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r6", 6, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r7", 7, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r8", 8, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r9", 9, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r10", 10, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r11", 11, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r12", 12, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r13", 13, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r14", 14, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r15", 15, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r16", 16, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r17", 17, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r18", 18, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r19", 19, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r20", 20, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r21", 21, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r22", 22, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r23", 23, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r24", 24, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r25", 25, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r26", 26, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r27", 27, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r28", 28, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "pc", 64, 1, NULL, 32, "code_ptr");
|
|
|
|
tdesc_create_reg (feature, "msr", 65, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "cr", 66, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "lr", 67, 1, NULL, 32, "code_ptr");
|
|
|
|
tdesc_create_reg (feature, "ctr", 68, 1, NULL, 32, "uint32");
|
|
|
|
tdesc_create_reg (feature, "xer", 69, 1, NULL, 32, "uint32");
|
|
|
|
|
|
|
|
feature = tdesc_create_feature (result, "org.gnu.gdb.power.spe");
|
|
|
|
tdesc_create_reg (feature, "ev0h", 32, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev1h", 33, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev2h", 34, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev3h", 35, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev4h", 36, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev5h", 37, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev6h", 38, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev7h", 39, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev8h", 40, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev9h", 41, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev10h", 42, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev11h", 43, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev12h", 44, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev13h", 45, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev14h", 46, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev15h", 47, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev16h", 48, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev17h", 49, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev18h", 50, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev19h", 51, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev20h", 52, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev21h", 53, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev22h", 54, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev23h", 55, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev24h", 56, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev25h", 57, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev26h", 58, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev27h", 59, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev28h", 60, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev29h", 61, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev30h", 62, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "ev31h", 63, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "acc", 73, 1, NULL, 64, "int");
|
|
|
|
tdesc_create_reg (feature, "spefscr", 74, 1, NULL, 32, "int");
|
|
|
|
|
|
|
|
feature = tdesc_create_feature (result, "org.gnu.gdb.power.linux");
|
|
|
|
tdesc_create_reg (feature, "orig_r3", 71, 1, NULL, 32, "int");
|
|
|
|
tdesc_create_reg (feature, "trap", 72, 1, NULL, 32, "int");
|
|
|
|
|
|
|
|
tdesc_powerpc_e500l = result;
|
|
|
|
}
|