Was wondering if there was a follow up to this. Just a recap but I am trying to map 0xFFFFFFFFFFFF8000 - 0xFFFFFFFFFFFFBFFF into a userspace process's virtual address space. It falls squarely in KSEG3.
Here is what I have tried Attempt 1 What I did: #undef TARGET_VIRT_ADDR_SPACE_BITS and #define TARGET_VIRT_ADDR_SPACE_BITS 64 The Result: perror reports "Cannot allocate memory" Attempt 2: What I did: TARGET_VIRT_ADDR_SPACE_BITS for me is 48 on amd64 so I masked by 0xFFFFFFFFFFFF The Result: perror reports "Cannot allocate memory"