Giter VIP home page Giter VIP logo

Comments (4)

BarebitOpenSource avatar BarebitOpenSource commented on May 24, 2024

The Intel manual explicitly says:

Specification of the instruction's opcode above indicates a ModR/M byte of F8. For this instruction, the processor
ignores the r/m field of the ModR/M byte. Thus, SFENCE is encoded by any opcode of the form 0F AE Fx, where x
is in the range 8-F

from x86reference.

Kashio avatar Kashio commented on May 24, 2024

Yea you're correct I missed it in felix's docs.
Although I'm not sure he grabbed this from the Intel manual, as far as I can tell this is all the given information about SFENCE in the manual:

The SFENCE (Store Fence) instruction controls write ordering by creating a fence for memory store operations. This
instruction guarantees that the result of every store instruction that precedes the store fence in program order is
globally visible before any store instruction that follows the fence. The SFENCE instruction provides an efficient way
of ensuring ordering between procedures that produce weakly-ordered data and procedures that consume that
data.

Page 252 section 10.4.6.4.

Also disassemblers like objdump and capstone doesn't recognize this instruction if not used with F8 ModR/M byte.
You can confirm objdump disassembly here,
and capstone disassembly here.

You have any idea maybe where this quote is from since I couldn't find it in the manual and the other disassemblers disagree.

from x86reference.

BarebitOpenSource avatar BarebitOpenSource commented on May 24, 2024

This is the right one, page 601:

https://www.intel.com/content/www/us/en/architecture-and-technology/64-ia-32-architectures-software-developer-vol-2b-manual.html

from x86reference.

Kashio avatar Kashio commented on May 24, 2024

This is the right one, page 601:

https://www.intel.com/content/www/us/en/architecture-and-technology/64-ia-32-architectures-software-developer-vol-2b-manual.html

Hmmm interesting.
Wonder why other disassemblers missed it.
Guessed this can be closed :)

from x86reference.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.