Skip to content

Conversation

@elicn
Copy link
Member

@elicn elicn commented Oct 31, 2025

Highlights:

To test the fix, the repro code from the original issue has been adjusted to the most recent implementation:

from qiling import Qiling
from qiling.const import QL_ARCH, QL_OS
from qiling.os.memory import QlMmioHandler


class NullHandler(QlMmioHandler):
    def read(self, ql: Qiling, offset: int, size: int) -> int:
        return 0

    def write(self, ql: Qiling, offset: int, size: int, value: int) -> None:
        pass


ql = Qiling(code=b"\0", archtype=QL_ARCH.ARM, ostype=QL_OS.LINUX)

ql.mem.map_mmio(0, 0x2000, NullHandler())
ql.mem.unmap(0x1000, 0x1000)

ql.save(reg=False, mem=True)

@elicn elicn changed the title Mmio unmap fix MMIO unmap fix Oct 31, 2025
@xwings xwings merged commit 83c6fb9 into qilingframework:dev Nov 5, 2025
4 checks passed
@elicn elicn deleted the mmio-unmap-fix branch November 6, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants