Skip to content

LWGP #16

Open
Open
LWGP#16
@altuSemi

Description

@altuSemi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions