Giter Site home page Giter Site logo

Comments (3)

zarubaf avatar zarubaf commented on May 22, 2024 1

That is nothing specific to Ariane and you can figure this out by reading the RISC-V privileged spec. But basically you need to set satp, set mpp to U-mode (which it should be by default after reset) and do an mret. ISA questions like those are better suited for the RISC-V mailing lists.

from cva6.

zarubaf avatar zarubaf commented on May 22, 2024

First, why would you want to do address translation in machine mode, claryfing your use-case may help me to answer you.
RISC-V does not allow you to translate instruction fetch requests in M mode. You can do translated load/stores though if you set the mprv field in mstatus. The privilege level with which address translation is done is determined by the value in mpp.

https://github.com/pulp-platform/ariane/blob/a006526c6f1b9cab24dc6b39a672036c7f014f46/src/csr_regfile.sv#L463

I suggest you take a closer look at the RISC-V privileged specification.

from cva6.

ShravanSubbaraman avatar ShravanSubbaraman commented on May 22, 2024

I am not trying to perform the address translation in the M mode. I want to visualize the address translation feature to be working in my MMU. For which i will have to switch modes. Now to do that what are the changes that i have to incorporate?

from cva6.

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.