Giter Site home page Giter Site logo

mips32-nemu's Introduction

MIPS32-NEMU

MIPS32-NEMU是从ICS2017/nemu派生出来的MIPS32模拟器,经过了大量的精简,去除了diff testing,以及大量的macro。模拟器采用的是内存映射IO,在映射以及外设定义方面,应尽量与MIPS32-NPC保持一致。

内存映射

MIPS32-NPC中的内存映射定义如下(来自nexus-am/am/arch/mips32-npc/README.md):

0x00000000 - 0x00001fff: BRAM
0x10000000 - 0x1fffffff: DDR
0x40000000 - 0x40000fff: GPIO-trap
0x40001000 - 0x40001fff: Uartlite
0x40010000 - 0x4001ffff: VGA

先阶段仅实现了DDR内存,其他外设暂时还未实现。

Monitor

现阶段monitor只实现了info r打印寄存器,还有si单步执行,这些代码都是直接从ics2015中搬过去的。在调试过程中,请根据需要给monitor增加功能。

编译

make

运行

将nexus-am/tests/cputest/build下的*.bin文件拷贝到build目录下,运行

./nemu -i *.bin

注意,由于我们在模拟器中并没有loader,请务必运行经过了objcopy处理过的*.bin文件,而不是运行直接运行非.bin结尾的可执行文件。

阶段目标

通过所有cputest。

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.