[gem5-users] Re: virtual address -> base + offset

2022-05-09 Thread Jason Lowe-Power
Hi Sindhuja, I'm not sure exactly what you're looking for when you say "base and offset." I believe you can query the base page size from the ISA (I forget the exact function). With that you can divide and use modulo to compute the VPN/PPN and the offset. You can also look at the TLB code to see

[gem5-users] Re: virtual address -> base + offset

2022-05-09 Thread Jason Lowe-Power
Hi Sindhuja, The WholeTranslationState object should have all of the virtual and physical address information. In fact, the Request object (a member of the Packet) should also have both virtual and physical addresses. Cheers, Jason On Mon, May 9, 2022 at 10:23 AM Sindhuja Gopalakrishnan Elango

[gem5-users] Re: M5ops for KVM

2022-05-09 Thread Pedro Henrique Exenberger Becker
Hi Majid, I've faced the same problem some time ago. Could you try removing the flag "-fPIC" and using the flag "-no-pie" when linking instead? That's what solved for me at the time. To be honest I don't know why. I do know that KVM instructions are triggered when some magic memory position is

[gem5-users] Re: fatal: Syscall 278 out of range (ARM) - can i skip/supress syscall unimplemeted errors

2022-05-09 Thread Jason Lowe-Power
Hi Tom, My guess is that you're using a newer version of GLIBC which calles different syscalls than the versions of GLIBC that have been tested with gem5. I believe 278 is mq_notify. You can try to update the syscall implementation to ignore the syscall and see if the application still works. See