Removed HardwareRegister::Accessor class
Opted for a simpler interface that passes the accessor chip into the
public functions.
Change-Id: Iddbe171a59455d80cfe045004cb1662e894374f7
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
diff --git a/src/register/hei_register.hpp b/src/register/hei_register.hpp
index 3e2fb8d..2a5c6ef 100755
--- a/src/register/hei_register.hpp
+++ b/src/register/hei_register.hpp
@@ -19,7 +19,7 @@
CHIP_TYPE, ACCESS_RO);
Register * mask = new ConstantRegister( 0xffffffff00000000 );
Register * fir_mask = new AndRegister(fir, mask);
-const BitString * bs = fir_mask->getBitString();
+const BitString * bs = fir_mask->getBitString(chip);
The getBitString function (defined by each register) provides access to
the BitString that manages each register's data. In this example bs will
@@ -33,12 +33,11 @@
virtual ~Register() = 0;
/**
- @brief Provides access to the BitString that manages
- this register's data.
- @return A pointer to a BitString.
- */
- virtual const BitString * getBitString() const = 0;
-
+ * @brief Provides access to the value of this register.
+ * @param i_chip Indicates which chip to access for this register.
+ * @return A BitString containing the value of this register.
+ */
+ virtual const BitString * getBitString( const Chip & i_chip ) const = 0;
};
// Pure virtual destructor must be defined.