Re: [gem5-users] Getting the virtual address of a specific physical address in x86 se mode

2020-02-14 Thread Jason Lowe-Power
Ah! Of course, sorry about that. You have to call the function *after* `m5.instantiate()`. The `m5.instantiate()` function instantiates all of the C++ classes. Only after that can you call C++ functions. Cheers, Jason On Fri, Feb 14, 2020 at 6:09 AM Muhammad Aamir wrote: > Hi Jason, > > thank

Re: [gem5-users] Getting the virtual address of a specific physical address in x86 se mode

2020-02-14 Thread Muhammad Aamir
Hi Jason, thank you for the answer, I just have one more basic question(which might seem trivial to you), How do I correctly initialize the cxxMethods, as I am continuously receiving errors while initializing the map function, I also created my own simple cxxMethod to check what I was doing and

Re: [gem5-users] Getting the virtual address of a specific physical address in x86 se mode

2020-02-13 Thread Jason Lowe-Power
Hello, You can use the "map" function on the Process SimObject to set a specific virtual to physical mapping. See https://gem5.googlesource.com/public/gem5/+/refs/heads/master/src/sim/Process.py#39 After you instantiate the process in your python config script, you can call map() on it and then

[gem5-users] Getting the virtual address of a specific physical address in x86 se mode

2020-02-13 Thread Muhammad Aamir
Hi everyone, I have basically initialized some simplememory class as a Scratchpad memories, and I intend to write to them. One way that i have figured to access them is using addresses, As I know once initialized they are assigned some virtual addresses by the pagetables, and since each virtual