x86/debug: Change thread.debugreg6 to thread.virtual_dr6
[linux-2.6-microblaze.git] / arch / x86 / kernel / ptrace.c
index 5f98289..bedca01 100644 (file)
@@ -465,7 +465,7 @@ static void ptrace_triggered(struct perf_event *bp,
                        break;
        }
 
-       thread->debugreg6 |= (DR_TRAP0 << i);
+       thread->virtual_dr6 |= (DR_TRAP0 << i);
 }
 
 /*
@@ -601,7 +601,7 @@ static unsigned long ptrace_get_debugreg(struct task_struct *tsk, int n)
                if (bp)
                        val = bp->hw.info.address;
        } else if (n == 6) {
-               val = thread->debugreg6 ^ DR6_RESERVED; /* Flip back to arch polarity */
+               val = thread->virtual_dr6 ^ DR6_RESERVED; /* Flip back to arch polarity */
        } else if (n == 7) {
                val = thread->ptrace_dr7;
        }
@@ -657,7 +657,7 @@ static int ptrace_set_debugreg(struct task_struct *tsk, int n,
        if (n < HBP_NUM) {
                rc = ptrace_set_breakpoint_addr(tsk, n, val);
        } else if (n == 6) {
-               thread->debugreg6 = val ^ DR6_RESERVED; /* Flip to positive polarity */
+               thread->virtual_dr6 = val ^ DR6_RESERVED; /* Flip to positive polarity */
                rc = 0;
        } else if (n == 7) {
                rc = ptrace_write_dr7(tsk, val);