unicorn-engine / unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
http://www.unicorn-engine.org
GNU General Public License v2.0
7.33k stars 1.31k forks source link

Paging doesn't work on x86, is that by design? #1953

Closed kukrimate closed 2 months ago

kukrimate commented 2 months ago

Specifically the following patch to qemu/target/i386/excp_helper.c:646 makes paging non-functional:

    // Unicorn: indentity map guest virtual address to host virtual address
    vaddr = addr & TARGET_PAGE_MASK;
    paddr = vaddr;
wtdcode commented 2 months ago

This should be addressed by e96ac42b2e8f8ded790fd156ef5a5d55ac088acb

kukrimate commented 2 months ago

Great, so if I rebase on the dev branch, I should be able to set a flag to disable forced identity mapping?

wtdcode commented 2 months ago

Identity mapping is disabled by default on dev branch and further 2.1.0 release.

kukrimate commented 2 months ago

Thank you for the quick reply, closing this.