Skip to content

debug: Sv39 identity mappings incompatible with platforms that have main memory at addresses bigger than 38 bits #625

@alikates

Description

@alikates

Hello,
I'm trying to run the Sv39 debug test on a platform that has 40 bit physical addresses. The start of main memory is placed at 0x80_0000_0000. This prevents the test from working because the core detects an incorrectly sign-extended address (bit 39 is 1, but 38 isn't) and triggers a page fault on the first memory access after enabling virtualization and configuring mprv.

Right now I don't really know how to solve this, but I guess supporting these scenarios would require to stop relying on the identity mapping for checking the correct reads and writes from debug mode.

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