Review Board 2.0.15


ruby: consolidate CntrlBase class definition and add method

Review Request #3435 - Created April 4, 2016 and updated

Information
Brandon Potter
gem5
default
Reviewers
Default
Changeset 11437:5103da28c1da
---------------------------
ruby: consolidate CntrlBase class definition and add method

The CntrlBase class was declared in each of the GPU protocols instead using
the shared module which was already defined (and equivalent to each
definition).

Also, the clearBase method is needed for multi-instance ruby support. The
bookkeeping information that the class provides leaks across the controller
definitions even when the controllers belong to different Ruby systems. The
problem only manifests with the GPU protocols because those protocols
are the only ones that use the CntrlBase class.