Git Product home page Git Product logo

Comments (10)

aswaterman avatar aswaterman commented on September 24, 2024

from riscv-isa-sim.

zhanghongce avatar zhanghongce commented on September 24, 2024

Thank you for your reply! But I didn't get it why setting xPIE=1 can be used to detect software bugs. So it seems that we can treat the spec as saying xPIE can be anything after executing xRET, correct?

from riscv-isa-sim.

sorear avatar sorear commented on September 24, 2024

If a SRET is followed by a non-delegated trap into M-mode, the M-mode code can observe the value of SPIE which was written by SRET.

from riscv-isa-sim.

aswaterman avatar aswaterman commented on September 24, 2024

By "benign" I meant it doesn't create a security hole. It's still a bug and Spike needs to be fixed. I'll do so shortly.

from riscv-isa-sim.

zhanghongce avatar zhanghongce commented on September 24, 2024

Thank you very much for your reply!
Sorry for bothering you again, but I just have one more question. It seems legal to execute an SRET instruction when in M-mode. Is this behavior desired?

from riscv-isa-sim.

aswaterman avatar aswaterman commented on September 24, 2024

It is legal. In practice, it is not likely to be especially useful, but allowing all instructions in M-mode simplifies testing.

from riscv-isa-sim.

mainkar-rohit avatar mainkar-rohit commented on September 24, 2024

Hi Andrew,
It is legal to execute sret in M mode only if S mode is available right?
If S mode is not supported, isn't sret illegal?

from riscv-isa-sim.

aswaterman avatar aswaterman commented on September 24, 2024

That’s right.

from riscv-isa-sim.

mainkar-rohit avatar mainkar-rohit commented on September 24, 2024

from riscv-isa-sim.

aswaterman avatar aswaterman commented on September 24, 2024

Spike doesn't support configuring which privilege modes are available (yet).

from riscv-isa-sim.

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.