Comments (7)
I hadn't realised when I wrote my earlier comment that the things going wrong were probably due to lack of support for HTIF (and therefore printm
) on rv32 - PR #94 created to try and workaround the issue.
from riscv-pk.
I'm seeing something similar with a 32-bit build - reverting this commit seems to fix the issue: 5a0e3e5
As far as I can tell from looking at the log generated by Spike, something appears to go wrong from that printm
with pk ending up in trap_from_machine_mode
after the ebreak
instruction in htif_console_putchar
- this then ends up in bad_trap
which tries to print, which ends up in htif_console_putchar
again which spins forever trying to acquire htif_lock
.
@generalbrus does commenting out the printm
added in the above commit and rebuilding fix the issue for you?
from riscv-pk.
@gmarkall I tried applying the edits in both commits but now I get trap_store_address_misaligned
from riscv-pk.
I guess there's some other issue as well - does it get as far as printing "Hello" (assuming your hello program is intended to print "Hello")?
from riscv-pk.
It loops indefinitely... The hello program is the one mentioned in the riscv-tools
README to test everything is fine, it just prints "Hello World".
@gmarkall can you tell me what commands you used to install the 32-bit pk build with your edits, please? Tbh it's quite a mess to understand what the actual params for ./configure
should be, given the recent changes and issues.
from riscv-pk.
@generalbrus I just used configure --prefix=<install path> --host=riscv32-unknown-elf
because I already had a toolchain with rv32im
as the default arch.
from riscv-pk.
I also have this issue with the latest and removing the printm does in fact solve this issue.
from riscv-pk.
Related Issues (20)
- [question] Kernel load segfault HOT 7
- exception trap_instruction_page_fault
- Can pk init vtype when specify V extension? HOT 9
- error when build RV32 HOT 1
- RV32 bbl loader ../machine/minit.c:78: assertion failed: !(read_csr(misa) & fd_mask) HOT 1
- [question]A request on c-based bbl payload example
- Pk doesn't recognize vector instructions HOT 1
- Compiling error in Mac M1 HOT 1
- Error While configuring Berkeley boot loader HOT 2
- how to suppres "bbl loader" output by spike pk? HOT 1
- Redundant Load and Branch Instructions from HTIF while executing binaries HOT 3
- bbl error
- Loading large file into memory HOT 2
- could not open pk HOT 1
- "Cannot open output file dummy_payload" when building with docker HOT 1
- Linux kernel not showing output after earlycon0 disabled
- macOS 14,compile fail ,"./configure --prefix=/opt/riscv --with-arch=rv32gc --with-abi=ilp32d make linux"
- Issue with linux HOT 1
- pk: mmap based on `p_filesz` fails when it is 0 (zero) HOT 2
- Support RVC program without requiring RVC pk HOT 1
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 riscv-pk.