Commit 9055330f authored by Eduardo Habkost's avatar Eduardo Habkost
Browse files

target-i386: Ensure bit 10 on DR7 is never cleared



Bit 10 of DR7 is documented as always set to 1, so ensure that's
always the case.

Reviewed-by: default avatarRichard Henderson <rth@twiddle.net>
Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
parent 36eb6e09
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -85,6 +85,8 @@ void cpu_x86_update_dr7(CPUX86State *env, uint32_t new_dr7)
    target_ulong old_dr7 = env->dr[7];
    int i;

    new_dr7 |= DR7_FIXED_1;

    /* If nothing is changing except the global/local enable bits,
       then we can make the change more efficient.  */
    if (((old_dr7 ^ new_dr7) & ~0xff) == 0) {