]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
VG_(switch_to_real_CPU): Apparently we can't reload the %cs register
authorJulian Seward <jseward@acm.org>
Tue, 3 Dec 2002 00:38:59 +0000 (00:38 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 3 Dec 2002 00:38:59 +0000 (00:38 +0000)
in untrusted mode.  Strange.  I thought I fixed this a couple of
months back.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1344

coregrind/vg_startup.S

index 0cf5e877ba9d31b449706a1854a51d537e833372..26c8b92b6859aac762f3895bf74a125343a1bcc4 100644 (file)
@@ -146,7 +146,8 @@ VG_(switch_to_real_CPU):
        movl    VG_(m_state_static)+56, %eax
        pushl   %eax
        popfl
-       movw    VG_(m_state_static)+0, %cs
+       /* some of these are apparently illegal */
+       /* movw VG_(m_state_static)+0, %cs */
        movw    VG_(m_state_static)+4, %ss
        movw    VG_(m_state_static)+8, %ds
        movw    VG_(m_state_static)+12, %es