]> git.proxmox.com Git - qemu.git/blobdiff - target-xtensa/cpu.h
target-xtensa: add gdb support
[qemu.git] / target-xtensa / cpu.h
index c9094e902b3cca9d67a0a408c6f27207dfa46d1b..93e17d1980a3064ea480ace49fc0aad6633477a9 100644 (file)
@@ -214,9 +214,23 @@ typedef enum {
     INTTYPE_MAX
 } interrupt_type;
 
+typedef struct XtensaGdbReg {
+    int targno;
+    int type;
+    int group;
+} XtensaGdbReg;
+
+typedef struct XtensaGdbRegmap {
+    int num_regs;
+    int num_core_regs;
+    /* PC + a + ar + sr + ur */
+    XtensaGdbReg reg[1 + 16 + 64 + 256 + 256];
+} XtensaGdbRegmap;
+
 typedef struct XtensaConfig {
     const char *name;
     uint64_t options;
+    XtensaGdbRegmap gdb_regmap;
     unsigned nareg;
     int excm_level;
     int ndepc;