Skip to content

64 bit CPU takes misaligned exception in mtvec_handler ? #1006

Open
@algrobman

Description

@algrobman

trying to simulate simple arithmetic test: riscv_arithmetic_basic_test_0.S.

the cpu takes misaligned store exception here:

mtvec_handler:    
                  addi x17, x17, -4  <<<  why is it 4 ?
                  sd  x22, (x17)  <<<< exception

Is there any control to avoid it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions