sim: Add helper functions that add PCEvents with custom arguments
authorAndreas Sandberg <Andreas.Sandberg@ARM.com>
Mon, 22 Apr 2013 17:20:31 +0000 (13:20 -0400)
committerAndreas Sandberg <Andreas.Sandberg@ARM.com>
Mon, 22 Apr 2013 17:20:31 +0000 (13:20 -0400)
commitaa08069b3fb9a564df755ec558fd64ba076b0ef3
tree663e54fb3287ac7522457381e49190d1da36a823
parentc9e4678c16164ca12de951ea6faffc9ab9600b0b
sim: Add helper functions that add PCEvents with custom arguments

This changeset adds support for forwarding arguments to the PC
event constructors to following methods:

addKernelFuncEvent
addFuncEvent

Additionally, this changeset adds the following helper method to the
System base class:

addFuncEventOrPanic - Hook a PCEvent to a symbol, panic on failure.

addKernelFuncEventOrPanic - Hook a PCEvent to a kernel symbol, panic
                            on failure.

System implementations have been updated to use the new functionality
where appropriate.
src/arch/alpha/linux/system.cc
src/arch/alpha/tru64/system.cc
src/arch/arm/linux/system.cc
src/sim/system.hh