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

Boot Address #96

Closed
eroom1966 opened this issue Jun 26, 2019 · 6 comments
Closed

Boot Address #96

eroom1966 opened this issue Jun 26, 2019 · 6 comments
Labels
Type:Question Questions

Comments

@eroom1966
Copy link

Hi
Something strange is happening, I have defined the Reset / Boot address to be 0x80000000
but the first address fetched is 0x80000080
How do I define the reset address I wish to be the first fetch address ?

Thx
Lee

@gautschimi
Copy link
Contributor

the reset vector is always at boot_addr + 0x80. the addresses up to 0x80 are used for the interrupt vector table

@imphil
Copy link
Contributor

imphil commented Jun 26, 2019

We'll have in our tree shortly, but for now you can find a suitable linker script and crt in this PR: https://github.com/lowRISC/ibex/pull/78/files

@imphil imphil added the Type:Question Questions label Jun 26, 2019
@eroom1966
Copy link
Author

How does this correspond to the RISCV Priveleged spec ?
I see the exceptions are at hard coded addresses, rather than being encoded into an MCAUSE register
https://ibex-core.readthedocs.io/en/latest/exception_interrupts.html

Thx
Lee

@imphil
Copy link
Contributor

imphil commented Jun 26, 2019

The current trap handling is free-form, which was allowed in an older version of the spec. Work is underway to update it to to the current spec in #70.

@vogelpi
Copy link
Contributor

vogelpi commented Jul 3, 2019

The trap handling is now conforming to the RISC-V spec. I am thus closing this issue.

@jrrk2
Copy link

jrrk2 commented Mar 12, 2020

What if the boot_addr_i is non-zero ? It seems a bit strange to force the address to be something other than what you asked for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Question Questions
Projects
None yet
Development

No branches or pull requests

5 participants