X86: Fix argument register indexing.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 27 Jul 2007 05:13:14 +0000 (22:13 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 27 Jul 2007 05:13:14 +0000 (22:13 -0700)
commitd1e533a1e243b75b3257e2f96deb385a3b10e09b
tree5cde70506a663c83efceced11273cca47fed9586
parent876849724d0e5a990018dc025a8166c5131be567
X86: Fix argument register indexing.
Code was assuming that all argument registers followed in order from ArgumentReg0. There is now an ArgumentReg array which is indexed to find the right index. There is a constant, NumArgumentRegs, which can be used to protect against using an invalid ArgumentReg.

--HG--
extra : convert_revision : f448a3ca4d6adc3fc3323562870f70eec05a8a1f
15 files changed:
src/arch/alpha/freebsd/system.cc
src/arch/alpha/isa_traits.hh
src/arch/mips/isa_traits.hh
src/arch/sparc/isa_traits.hh
src/arch/sparc/process.cc
src/arch/x86/isa_traits.hh
src/arch/x86/process.cc
src/cpu/o3/alpha/cpu_impl.hh
src/cpu/o3/mips/cpu_impl.hh
src/cpu/o3/sparc/cpu_impl.hh
src/cpu/ozone/cpu.hh
src/cpu/simple_thread.hh
src/kern/tru64/tru64.hh
src/kern/tru64/tru64_events.cc
src/sim/process.cc