Skip to content

Enable riscv virt2phys_mode to hw, insert breakpoing failed. #1278

@weiqi7777

Description

@weiqi7777

hi:
we use the hardware translate virtual address to access memory.
as below:
Image

when we execute si command in gdb, it print the warning, and gdb will not work after the warning.

We reproduced this scenario on the hardware and found that OpenOCD made the hardware modify the instruction region by walking the page table and inserting ebreak instructions. However, this instruction region's page table attributes lack the Write (W) permission, causing the write operation to fail.

So how should we solve the warning?

thanks

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