Skip to content

Memory access issue when xlen=64 #146

Open
@KotorinMinami

Description

@KotorinMinami

In the new simulator phase, we can set xlen to 64.

However, even after configuring it to 64-bit, the simulator's memory access range remains 32-bit, while the registers are 64-bit. This discrepancy will cause issues with instructions such as load during execution.

For more details, you may refer to example.S, where you will find that an infinite loop occurs due to the inability to read pre-set values from memory.(After lw , the x5 remain 0)

Screenshot from 2024-07-31 03-28-32

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