From: Julian Seward Date: Tue, 3 Dec 2002 00:38:59 +0000 (+0000) Subject: VG_(switch_to_real_CPU): Apparently we can't reload the %cs register X-Git-Tag: svn/VALGRIND_1_9_4~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29d68f3caa6410321fa049e6671eec0c5e92fff7;p=thirdparty%2Fvalgrind.git VG_(switch_to_real_CPU): Apparently we can't reload the %cs register in untrusted mode. Strange. I thought I fixed this a couple of months back. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1344 --- diff --git a/coregrind/vg_startup.S b/coregrind/vg_startup.S index 0cf5e877ba..26c8b92b68 100644 --- a/coregrind/vg_startup.S +++ b/coregrind/vg_startup.S @@ -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