commit | 2f341bf8bd5d369367014780c6791e3c836b9bfc | [log] [tgz] |
---|---|---|
author | Zane Shelley <zshelle@us.ibm.com> | Wed Oct 16 11:19:36 2019 -0500 |
committer | Zane Shelley <zshelle@us.ibm.com> | Fri Oct 18 21:10:20 2019 +0000 |
tree | 31baa84c4aaee216a8bd05fd3eca1b2a8338abec | |
parent | afa669af9ff7ad5c8520b124552e605d60225db2 [diff] |
Disabled copy contructor for ScomRegister and IdScomRegister In general, these objects will be stored in the flyweights and once created there shouldn't be copies made of them. Allowing the copy constructor will allow something like 'SR sr = fw.get(...)' (note that code used copy instead of assignment). Instead, that code should keep a reference to the object in the flyweight like: 'SR & sr = fw.get(...)'. Deleting the copy constructor forces this behavior. The slight complication to this is that the flyweights need to use the copy constructor in the get() function. So to work around this the flyweights have been made a friend class in the associated register classes so that it will have access to the private copy constructor. Change-Id: I0e2f31a2bbf16b69e5210da8fefffd5bd51fcf6d Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
This library is a common, portable code base for isolating errors reported by hardware registers on POWER Systems chips.
The primary consumers (and requirements drivers) will be:
See the primary API definitions for details on how to use this library.
This library is intended to be integrated into containing user applications as a set of source files (either imported, or as a git subtree/submodule).
Details TBD.
__HEI_READ_ONLY
: When defined, it will ensure any hardware write support is disabled. Note that the Chip Data Files will contain rules for clearing and masking register bits. Both of which will require modifying hardware registers, which is not allowed by user applications like OpenBMC or FSP firmware.src/include/
in the POWER Systems Hostboot firmware.