Skip to contentSkip to conversation

xen/x86: Fix CONFIG_CRASH_DEBUG build following c/s 897129dea

PATCH In review Andrew Cooper 3 participants 4 messages Jan 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/x86: Fix CONFIG_CRASH_DEBUG build following c/s 897129dea

Found by a Travis RANDCONFIG run.

---
CC: Jan Beulich <[email protected]>
CC: Elena Ufimtseva <[email protected]>

---
 xen/arch/x86/gdbstub.c        | 8 ++++----
 xen/arch/x86/x86_64/gdbstub.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
xen/arch/x86/gdbstub.c +4 -4
index 2a39189..fe69f81 100644
@@ -66,16 +66,16 @@ gdb_arch_resume(struct cpu_user_regs *regs,
                 struct gdb_context *ctx)
 {
     if ( addr != -1UL )
-        regs->eip = addr;
+        regs->rip = addr;
 
-    regs->eflags &= ~X86_EFLAGS_TF;
+    regs->_eflags &= ~X86_EFLAGS_TF;
 
     /* Set eflags.RF to ensure we do not re-enter. */
-    regs->eflags |= X86_EFLAGS_RF;
+    regs->_eflags |= X86_EFLAGS_RF;
 
     /* Set the trap flag if we are single stepping. */
     if ( type == GDB_STEP )
-        regs->eflags |= X86_EFLAGS_TF;
+        regs->_eflags |= X86_EFLAGS_TF;
 }
 
 /*
xen/arch/x86/x86_64/gdbstub.c +1 -1
index 2626519..2c2ab15 100644
@@ -44,7 +44,7 @@ gdb_arch_read_reg_array(struct cpu_user_regs *regs, struct gdb_context *ctx)
     GDB_REG64(regs->r15);
 
     GDB_REG64(regs->rip);
-    GDB_REG32(regs->eflags);
+    GDB_REG32(regs->_eflags);
 
     GDB_REG32(regs->cs);
     GDB_REG32(regs->ss);
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 3 lines · Andrew Cooper

Found by a Travis RANDCONFIG run.

Quoted 49 lines

---
CC: Jan Beulich <[email protected]>
CC: Elena Ufimtseva <[email protected]>

---
 xen/arch/x86/gdbstub.c        | 8 ++++----
 xen/arch/x86/x86_64/gdbstub.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
xen/arch/x86/gdbstub.c +4 -4
index 2a39189..fe69f81 100644
@@ -66,16 +66,16 @@ gdb_arch_resume(struct cpu_user_regs *regs,
                 struct gdb_context *ctx)
 {
     if ( addr != -1UL )
-        regs->eip = addr;
+        regs->rip = addr;
 
-    regs->eflags &= ~X86_EFLAGS_TF;
+    regs->_eflags &= ~X86_EFLAGS_TF;
 
     /* Set eflags.RF to ensure we do not re-enter. */
-    regs->eflags |= X86_EFLAGS_RF;
+    regs->_eflags |= X86_EFLAGS_RF;
 
     /* Set the trap flag if we are single stepping. */
     if ( type == GDB_STEP )
-        regs->eflags |= X86_EFLAGS_TF;
+        regs->_eflags |= X86_EFLAGS_TF;
 }
 
 /*
xen/arch/x86/x86_64/gdbstub.c +1 -1
index 2626519..2c2ab15 100644
@@ -44,7 +44,7 @@ gdb_arch_read_reg_array(struct cpu_user_regs *regs, struct gdb_context *ctx)
     GDB_REG64(regs->r15);
 
     GDB_REG64(regs->rip);
-    GDB_REG32(regs->eflags);
+    GDB_REG32(regs->_eflags);
 
     GDB_REG32(regs->cs);
     GDB_REG32(regs->ss);
Signature · 1 line
2.1.4

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel