Comments (5)
Alright, figured it out.
Following this
I replaced CFLAGS+=-g -Os -march=rv32ima -mabi=ilp32 -static
with CFLAGS+=-g -Os -march=rv32ima_zicsr -mabi=ilp32 -static
And it works now :)
from mini-rv32ima.
Hmm... I wrote it to use the system rv64 compiler, so you wouldn't need to build the toolchain to compile the example.
That said, that's probably not the best way to do it, now that it's possible to use the buildroot environment in Windows.
I am curious what other people's feelings are. (reopening issue, in case anyone else wants to comment)
from mini-rv32ima.
What compiler are each of you using?
I ran into this issue when building the riscv-pk tool the other day riscv-pk 287. Apparently it's an issue in the newer versions of gcc. Also be aware that it doesn't seem like binutils has caught up with this change, so the linker doesn't accept the _zicsr
isa option.
from mini-rv32ima.
riscv32-buildroot-linux-uclibc-gcc.br_real (Buildroot -gfc2ef6e2) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
from mini-rv32ima.
I use riscv64-unknown-elf-gcc 9.3.0
I think it makes sense to remove zicsr from the line. If anyone's up for making a PR.
from mini-rv32ima.
Related Issues (20)
- Atomic instruction emulation HOT 6
- "make everything" fails with 'elf2flt: ERROR: text=0x72698 overlaps data=0x698a0' HOT 4
- Doom build fails since 32-bit libraries not installed (I think?) HOT 3
- Please express true isa as RV32IMAZicsr_Zifencei HOT 18
- (Suggestion) extension to G(IMAFD)-spec? HOT 4
- vi with no filename faults with access fault HOT 12
- Human readable unit tests for rv64imafdc instructions
- Bare-metal libc HOT 3
- Kernel panics on emulator compiled for ARM (trying to run linux on the Raspberry Pi Pico) HOT 8
- inittab for buildroot HOT 1
- "make testdlimage" => "./mini-rv32ima -f DownloadedImage" ... hangs (tested on 3 different platforms). HOT 4
- I Made it! esp32c3 can run linux with this wonderful emulator HOT 10
- Test page trimming
- Use as an embedded application loader HOT 2
- U-BOOT HOT 5
- Can it run OpenSBI? HOT 9
- Customizing allowed instruction set? HOT 1
- Possible to get a full debian running on this? HOT 1
- out of ram for doom? HOT 5
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 mini-rv32ima.