Arguments: Get rid of duplicate code for the Arguments class in each architecture.
authorAli Saidi <saidi@eecs.umich.edu>
Wed, 1 Aug 2007 20:59:14 +0000 (16:59 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Wed, 1 Aug 2007 20:59:14 +0000 (16:59 -0400)
commitfae60c164e284864cfabea515db6ba28d601b71d
tree46f81cfc7e8df85101fe2efeb020dc4be5d47874
parentae3e1d22fc3bfff8c246a0a743b77f4096d95b74
Arguments: Get rid of duplicate code for the Arguments class in each architecture.
Move the argument files to src/sim and add a utility.cc file with a function
getArguments() that returns the given argument in the architecture specific fashion.
getArguments() was getArg() is the architecture specific Argument class and has had
all magic numbers replaced with meaningful constants. Also add a function to the
Argument class for testing if an argument is NULL.

--HG--
rename : src/arch/alpha/arguments.cc => src/sim/arguments.cc
rename : src/arch/alpha/arguments.hh => src/sim/arguments.hh
extra : convert_revision : 8b93667bafaa03b52aadb64d669adfe835266b8e
23 files changed:
src/arch/alpha/SConscript
src/arch/alpha/arguments.cc [deleted file]
src/arch/alpha/arguments.hh [deleted file]
src/arch/alpha/linux/system.cc
src/arch/alpha/utility.cc [new file with mode: 0644]
src/arch/alpha/utility.hh
src/arch/mips/utility.hh
src/arch/sparc/SConscript
src/arch/sparc/arguments.cc [deleted file]
src/arch/sparc/arguments.hh [deleted file]
src/arch/sparc/utility.cc [new file with mode: 0644]
src/arch/sparc/utility.hh
src/kern/linux/events.cc
src/kern/linux/printk.cc
src/kern/linux/printk.hh
src/kern/tru64/dump_mbuf.cc
src/kern/tru64/dump_mbuf.hh
src/kern/tru64/printf.cc
src/kern/tru64/printf.hh
src/kern/tru64/tru64_events.cc
src/sim/SConscript
src/sim/arguments.cc [new file with mode: 0644]
src/sim/arguments.hh [new file with mode: 0644]