Code Monkey home page Code Monkey logo

nemu-mips32's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nemu-mips32's Issues

Example

Can you post an example of how to compile an elf binary for this? I'm trying the MIPS GCC toolchain but I can't get the emulator to run it.

Why pa caculated from page_translate needs ioremap?

I'm learning mips by this perfect nemu-mips32. But I encounter a question when reading codes.

The function prot_addr_with_attr in include/cpu/memory.h::62, as I think, is a function that produces physical address (i.e. pa) from virtual address (i.e. va) and changes machine states (for example, there is exception raised).

The question is, in my opinoin, paddr=page_translate(addr, attr) is the pa. But prot_addr_with_attr returns ioremap(paddr), which is paddr & 0x1FFFFFFF.

I wanna why here it needs ioremap. Since PABITS is 32 not 29, shouldn't we just use full 32 bits of paddr?

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.