gem5/src/arch/power
Gabe Black 3f722b991f Syscalls: Make system calls access arguments like a stack, not an array.
When accessing arguments for a syscall, the position of an argument depends on
the policies of the ISA, how much space preceding arguments took up, and the
"alignment" of the index for this particular argument into the number of
possible storate locations. This change adjusts getSyscallArg to take its
index parameter by reference instead of value and to adjust it to point to the
possible location of the next argument on the stack, basically just after the
current one. This way, the rules for the new argument can be applied locally
without knowing about other arguments since those have already been taken into
account implicitly.

All system calls have also been changed to reflect the new interface. In a
number of cases this made the implementation clearer since it encourages
arguments to be collected in one place in order and then used as necessary
later, as opposed to scattering them throughout the function or using them in
place in long expressions. It also discourages using getSyscallArg over and
over to retrieve the same value when a temporary would do the job.
2009-10-30 00:44:55 -07:00
..
insts POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
isa POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
linux Syscalls: Make system calls access arguments like a stack, not an array. 2009-10-30 00:44:55 -07:00
faults.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
isa.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
isa_traits.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
locked_mem.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
microcode_rom.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
miscregs.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
mmaped_ipr.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
pagetable.cc POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
pagetable.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
PowerTLB.py POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
predecoder.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
process.cc Syscalls: Make system calls access arguments like a stack, not an array. 2009-10-30 00:44:55 -07:00
process.hh Syscalls: Make system calls access arguments like a stack, not an array. 2009-10-30 00:44:55 -07:00
registers.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
remote_gdb.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
SConscript POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
SConsopts POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
stacktrace.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
tlb.cc POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
tlb.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
types.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
utility.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00
vtophys.hh POWER: Add support for the Power ISA 2009-10-27 09:24:39 -07:00