From c8b3532d8a44db723a07b6eb2745568c86490f1c Mon Sep 17 00:00:00 2001 From: aurel32 Date: Sat, 24 Jan 2009 15:07:34 +0000 Subject: target-ppc: Add XML files for PowerPC registers These files are nearly identical to the XML files provided with GDB. The only difference is that power-{fpu,spe}.xml do not assign register numbers; the internal QEMU machinery takes care of that. Define gdb_xml_files for ppc targets in configure as well. Signed-off-by: Nathan Froyd Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6420 c046a42c-6fe2-441c-8c8c-71466251a162 --- configure | 4 ++++ gdb-xml/power-altivec.xml | 57 +++++++++++++++++++++++++++++++++++++++++++++++ gdb-xml/power-core.xml | 49 ++++++++++++++++++++++++++++++++++++++++ gdb-xml/power-fpu.xml | 44 ++++++++++++++++++++++++++++++++++++ gdb-xml/power-spe.xml | 45 +++++++++++++++++++++++++++++++++++++ gdb-xml/power64-core.xml | 49 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 248 insertions(+) create mode 100644 gdb-xml/power-altivec.xml create mode 100644 gdb-xml/power-core.xml create mode 100644 gdb-xml/power-fpu.xml create mode 100644 gdb-xml/power-spe.xml create mode 100644 gdb-xml/power64-core.xml diff --git a/configure b/configure index 6a1432a171..3c9d83233c 100755 --- a/configure +++ b/configure @@ -1638,6 +1638,7 @@ case "$target_cpu" in echo "TARGET_ARCH=ppc" >> $config_mak echo "#define TARGET_ARCH \"ppc\"" >> $config_h echo "#define TARGET_PPC 1" >> $config_h + gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml" ;; ppcemb) echo "TARGET_ARCH=ppcemb" >> $config_mak @@ -1650,6 +1651,7 @@ case "$target_cpu" in echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak echo "#define CONFIG_KVM 1" >> $config_h fi + gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml" ;; ppc64) echo "TARGET_ARCH=ppc64" >> $config_mak @@ -1657,6 +1659,7 @@ case "$target_cpu" in echo "#define TARGET_ARCH \"ppc64\"" >> $config_h echo "#define TARGET_PPC 1" >> $config_h echo "#define TARGET_PPC64 1" >> $config_h + gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml" ;; ppc64abi32) echo "TARGET_ARCH=ppc64" >> $config_mak @@ -1666,6 +1669,7 @@ case "$target_cpu" in echo "#define TARGET_PPC 1" >> $config_h echo "#define TARGET_PPC64 1" >> $config_h echo "#define TARGET_ABI32 1" >> $config_h + gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml" ;; sh4|sh4eb) echo "TARGET_ARCH=sh4" >> $config_mak diff --git a/gdb-xml/power-altivec.xml b/gdb-xml/power-altivec.xml new file mode 100644 index 0000000000..84f4d27bce --- /dev/null +++ b/gdb-xml/power-altivec.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gdb-xml/power-core.xml b/gdb-xml/power-core.xml new file mode 100644 index 0000000000..0c69e8c8a7 --- /dev/null +++ b/gdb-xml/power-core.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gdb-xml/power-fpu.xml b/gdb-xml/power-fpu.xml new file mode 100644 index 0000000000..d1ca3a3d5c --- /dev/null +++ b/gdb-xml/power-fpu.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gdb-xml/power-spe.xml b/gdb-xml/power-spe.xml new file mode 100644 index 0000000000..1ec15d66a1 --- /dev/null +++ b/gdb-xml/power-spe.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gdb-xml/power64-core.xml b/gdb-xml/power64-core.xml new file mode 100644 index 0000000000..6cc1531201 --- /dev/null +++ b/gdb-xml/power64-core.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.1