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

LWGP #16

Open
altuSemi opened this issue Feb 16, 2022 · 0 comments
Open

LWGP #16

altuSemi opened this issue Feb 16, 2022 · 0 comments

Comments

@altuSemi
Copy link

Is LWGP supported by BIRISCV?

BIRISCV core is throwing the exception “0x02: Illegal Instruction” when it executes compiler/assembler generated instructions with GP suffix.

Here is firmware log where it detected the 0x02 exception:
image
In this case, when program counter reaches to the instruction ‘lwgp’:
image
The core raises the 0x02 exception:

image

It is to be noted that, the startup assembly file and the Makefile are configured correctly to define __global_pointer.

image
image

The following flag disables the GP usage, but results in worse code density:
image

Your advise is appreciated, thanks

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