sim: Make the drain state a global typed enum
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 7 Jul 2015 08:51:04 +0000 (09:51 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 7 Jul 2015 08:51:04 +0000 (09:51 +0100)
commite9c3d59aae58f8fcf77ce5cf4b985dc9e2a90de2
tree799c50d9a0b99f1623a16d9c1d49f4cb0d1fcbaf
parent1dc5e63b889647a153f01351f560a3beaa41f293
sim: Make the drain state a global typed enum

The drain state enum is currently a part of the Drainable
interface. The same state machine will be used by the DrainManager to
identify the global state of the simulator. Make the drain state a
global typed enum to better cater for this usage scenario.
27 files changed:
src/arch/arm/table_walker.cc
src/cpu/minor/cpu.cc
src/cpu/o3/cpu.cc
src/cpu/o3/cpu.hh
src/dev/arm/flash_device.cc
src/dev/arm/ufs_device.cc
src/dev/copy_engine.cc
src/dev/dma_device.cc
src/dev/i8254xGBe.cc
src/dev/i8254xGBe.hh
src/dev/ide_disk.cc
src/dev/io_device.cc
src/dev/ns_gige.cc
src/dev/pcidev.cc
src/dev/sinic.cc
src/mem/cache/base.cc
src/mem/cache/mshr_queue.cc
src/mem/dram_ctrl.cc
src/mem/dramsim2.cc
src/mem/ruby/system/DMASequencer.cc
src/mem/ruby/system/RubyPort.cc
src/mem/ruby/system/Sequencer.cc
src/mem/simple_mem.cc
src/sim/drain.cc
src/sim/drain.hh
src/sim/sim_object.cc
src/sim/system.cc