Comments (4)
Thanks a lot.
I have modified spike, now it can run instructions in ROM.
from rsd.
Hello,
Apologies for the delayed response.
I believe the error you're encountering stems from a difference between the memory address map used by RSD and one assumed by Spike.
The binaries for RSD are compiled based on the address map defined in the linker script found here: https://github.com/rsd-devel/rsd/blob/master/Processor/Src/Verification/TestCode/rsd-ld.script. However, it seems Spike utilizes a different address map.
If you're looking to run RSD binaries on Spike, it would be advisable to check and align with the address map that Spike assumes.
In case your goal is simply to execute RSD binaries on an emulator, I suggest using an older version of QEMU (around 2017). Recent versions of QEMU appear to have adopted a different address map. However, the memory address map RSD assumes aligns with that of the older QEMU versions. For instance, we previously ran binaries on QEMU as demonstrated in this Makefile: https://github.com/rsd-devel/rsd/blob/master/Processor/Tools/QEMU_SimDriver/Makefile.
from rsd.
Can I put the instructions to be executed in the RAM area(pc>=0x8000 0000)? I tried and failed.
I think that might due to the width of pc. Because in rsd, the pc is 19-bit, but RAM starts with 0x8000 0000.
from rsd.
I suspect that the issue is due to the placement in code.hex. Check the contents of your generated code.hex. The first 64KB of code.hex is loaded into the ROM area and the rest into the RAM area (0x8000000000>=). You need to be aware of this when creating binaries.
In the case of Verilator, code.hex is loaded at the following location. (Sorry, the comment is written in Japanese...)
code.hex is generated by the following makefile.
https://github.com/rsd-devel/rsd/blob/3d13af1bc14d2b34a546754973d832d0309d118e/Processor/Src/Verification/TestCode/Makefile.inc
Note that, RSD has 19-bit compressed logical addresses by default, but RSD can use 0x8000000000 >= space with a hack that treats the most significant bit specially.
Also, you can disable this compression feature by disabling the macro on the following line:
from rsd.
Related Issues (20)
- Benchmark access (RSD-env) HOT 2
- error running the Makefile.verilator.mk HOT 3
- Off by one error in leading 0 count loop? HOT 1
- cannot convert ‘const VlWide<92>’ to ‘const uint32_t (&)[92]’ {aka ‘const unsigned int (&)[92]’} HOT 10
- wrong pointer used for poping btb queue HOT 2
- Wiki issue HOT 2
- Error when run in verilator: no viable conversion from 'const VlWide<92>' to 'const uint32_t [92]' HOT 2
- PC becomes 0x00000000 after jump to 0x80000000 to execute auipc instruction HOT 7
- [Bug Report] SD bit in mstatus doesn't update when FS=11 HOT 3
- [Bug Report] RSD doesn't update mstatus after `mret` instruction HOT 3
- [Bug Report] `fflags` records the accumulated status incorrectly HOT 1
- [Bug Report] Incorrect upward rounding result of fsub.s instruction HOT 3
- Cache and BP Disable Possible Way HOT 6
- [Bug Report] OF flag bit in fflags is not set correctly after fdiv.s instruction HOT 1
- [Bug Report] RSD didn't update fflags.NX correctly after fnmadd.s instruction HOT 1
- [Bug Report] `fflags.NV` is not set correctly after `fsqrt.s` instruction HOT 1
- [Bug Report] `fflags.UF` is not set correctly after `fdiv.s` instruction HOT 1
- [Bug Report] `fflags.DZ` set incorrectly after `fdiv.s` instruction HOT 3
- [Bug Report] Wrong sign bit when 0 is multiplied by a negative number HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rsd.