Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception trap_instruction_page_fault #299

Open
peter-samir-luis opened this issue Jun 25, 2023 · 0 comments
Open

exception trap_instruction_page_fault #299

peter-samir-luis opened this issue Jun 25, 2023 · 0 comments

Comments

@peter-samir-luis
Copy link

i built and install pk as follows:

git clone https://github.com/riscv/riscv-pk.git
cd riscv-pk
mkdir build
cd build 
../configure --prefix=/home/user/Spike-installed-tools --host=riscv32-unknown-elf --with-arch=rv32i_zifencei_zicsr
make
make install

i run simple hello program as follows:

spike --isa=RV32I pk /home/user/code/print/hello
bbl loader

then i debugged , and found that it enters exception trap_instruction_page_fault

core   0: exception trap_instruction_page_fault, epc 0x00011738
core   0:           tval 0x00011738
core   0: >>>>  trap_entry
core   0: 0x800027d8 (0x14011173) csrrw   sp, sscratch, sp
...
...
core   0: 0x000101c8 (0x0000006f) j       pc + 0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant