<div dir="ltr">I'm using this doc:<div><br></div><div><a href="http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-manual-325462.pdf">http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-manual-325462.pdf</a><br></div><div><br></div><div>In table 10-2, and again in 13-1, it does appear to call out the most significant byte as reserved (byte 5).  As do the instruction details.</div><div><br></div><div>Looking at the in-memory layout of the FPU tag word in "8.1.7 x87 FPU Tag Word", it is clear all 16 bits are used in the runtime image, and the 8 bits of defined ftag state in the FXSAVE area are encoded/decoded as per byte 4's description in section 10.5.1.</div><div><br></div><div>Seems fine to call it what it is - want to put up a patch?  Just make sure you run all the tests as well.</div><div><br></div><div>-Todd</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 24, 2015 at 2:44 AM, Abhishek Aggarwal via lldb-dev <span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:16px">Hi all</span><div style="font-size:16px"><br></div><div style="font-size:16px">I was looking into the file "source/Plugins/Process/Utility/RegisterContext_x86.h" and I noticed one thing in FXSAVE structure. The 'ftag' is defined as a 16 bit field.</div><div style="font-size:16px"><br></div><div style="font-size:16px">However, on referring to Architecture Software Developer Manual for x86 architectures, one can see that the memory layout of the contents of FXSAVE area has only 8 bits for 'ftag' register and rest of the 8 bits are reserved. Is there any specific reason of keeping 'ftag' field to be 16 bits in FXSAVE structure in LLDB for x86 Architectures?</div><span class="HOEnZb"><font color="#888888"><div style="font-size:16px"><br></div><div style="font-size:16px"><br></div><div style="font-size:16px">- Abhishek</div></font></span></div>
<br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-Todd</div></div>
</div>