GithubHelp home page GithubHelp logo

Segfault on Older CPUs about cult HOT 3 CLOSED

asmjit avatar asmjit commented on August 20, 2024
Segfault on Older CPUs

from cult.

Comments (3)

kobalicek avatar kobalicek commented on August 20, 2024

Hello, thanks for the report. It seems your CPU doesn't have RDTSCP instruction so it uses another code path that unfortunately doesn't work in user-space - my fault, I just implemented it based on an Intel paper without checking it has to run in kernel-space.

I will fix this tonight, however I'm not sure about the max error

from cult.

billyauhk avatar billyauhk commented on August 20, 2024

Thanks for the explanation. I have to look up Intel manual and confirmed that RDTSCP is not available (It says "Support for RDTSCP is indicated by CPUID.80000001H:EDX[27]").

So "the other code path" is using RDTSC+CPUID to achieve the same effect but I still cannot understand why "mov %cr0, %rax" is generated (and why "mov %rax, %cr0" next to it). Any pointers to relevant portion of the code in the repository?

from cult.

kobalicek avatar kobalicek commented on August 20, 2024

Closing as this should already be fixed.

from cult.

Related Issues (13)

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.