From 73d510c9d3f67378759447fd78af10b22e39620f Mon Sep 17 00:00:00 2001 From: David Hildenbrand Date: Fri, 29 Aug 2014 15:52:16 +0200 Subject: s390x/gdb: generate target.xml and handle fp/ac as coprocessors This patch reduces the core registers to the psw and the general purpose registers. The fpc and ac registers are handled as coprocessors registers by gdb. This allows to reuse the feature xml files taken from gdb without further modification and is what other architectures do. The target.xml is now generated and provided to the gdb client. Therefore, the client doesn't have to guess which registers are available at which logical register number. Signed-off-by: David Hildenbrand Acked-by: Cornelia Huck Acked-by: Christian Borntraeger Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- target-s390x/cpu-qom.h | 1 + 1 file changed, 1 insertion(+) (limited to 'target-s390x/cpu-qom.h') diff --git a/target-s390x/cpu-qom.h b/target-s390x/cpu-qom.h index f9c96d1..80dd741 100644 --- a/target-s390x/cpu-qom.h +++ b/target-s390x/cpu-qom.h @@ -89,5 +89,6 @@ hwaddr s390_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); hwaddr s390_cpu_get_phys_addr_debug(CPUState *cpu, vaddr addr); int s390_cpu_gdb_read_register(CPUState *cpu, uint8_t *buf, int reg); int s390_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg); +void s390_cpu_gdb_init(CPUState *cs); #endif -- cgit v1.1