[gem5-users] Where does system.cpu (from se.py/fe.py scripts) exist in gem5?

2021-06-30 Thread Balls Mahoney via gem5-users
I would like to create a system wide std::vector to be able to perform operations on all CPUs at once. I was wondering where system.cpu gets stored, because in System.py there is no "cpu" parameter defined, and if I try to initialize it to capture the CPUs creating in se.py or fs.py, I get a cycle

[gem5-users] How does privileged mode work in gem5 SE vs FS?

2021-06-27 Thread Balls Mahoney via gem5-users
I am interested in using the privileged assembly instruction, wbinvd, to flush and invalidate the L1I and L1D caches. However, I am confused when execution is considered to be in "privileged" mode in both SE and FS. I am wondering if there is an "intercepting" point at which I could execute these

[gem5-users] How are system calls handled in FS mode?

2021-06-22 Thread Balls Mahoney via gem5-users
I am confused about how system calls work in Full System mode (x86). For example, in src/arch/x86/isa/decoder/two_byte_opcodes.isa for FS mode only sysenter() is called (included code below). However, I don't see this function defined anywhere else. Is this something passed straight to the kernel?