Where does the stack and program arguments get setup for a process in Syscall Emulation mode?
A good point of reference for this is the “argsInit” function in the src/sim/process.cc file. For Syscall Emulation, each process is given a “LiveProcess” object and that function initializes the arguments to that process and also sets up the initial stack for that process. You’ll also notice that the architecture specific Process objects (e.g. AlphaLinuxLiveProcess found in arch/alpha/linux/process.hh) derive from the LiveProcess object too.