On 13 August 2015 at 16:23, Igor R <boost.li...@gmail.com> wrote: > Hello, > > I try to use cpu_memory_rw_debug() to read from 0x8xxxxxxx kernel virtual > address, when the guest is in user mode. Obviously, it fails. > Is it possible to modify some control registers to allow such an access? I > tried to set/clear the kernel mode bits in CP0_Status, but it doesn't help.
Rather than messing with the current state of the CPU, you probably want to use the helper functions for doing load/store to guest memory with a particular MMU index. -- PMM