commit | c11f23c200e540cfb5eb8e634eed0771fc1d5ef1 | [log] [tgz] |
---|---|---|
author | Zane Shelley <zshelle@us.ibm.com> | Mon May 11 12:14:41 2020 -0500 |
committer | Zane Shelley <zshelle@us.ibm.com> | Wed May 13 21:23:54 2020 +0000 |
tree | 44133283fc90d82fcdc36b5bb928ca0e7171716d | |
parent | 13b182b0916aea4d208765d7c10e2f895b037536 [diff] |
Flyweight::get() takes emplace params and returns shared_ptr Instead of creating an object, passing it by reference, and then copying that object again, the Flyweight::get() function was changed to take the parameters for the template object's constructor so that the object is created emplace. This avoids the extra copy. Also, using shared_ptr to make things a little more safe with memory management. Change-Id: Ib23010d5ee9d19b0be257eafc5297c8a158eebb0 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 can be integrated into a user application's source (either imported, or as a git subtree/submodule) or built as static library.
__HEI_ENABLE_HW_WRITE
: When defined, it will allow hardware write support. 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.For a standard OpenBMC release build, you want something like:
meson setup -Dtests=disabled <build_dir> ninja -C <build_dir> ninja -C <build_dir> install
For a test / debug build, a typical configuration is:
meson setup -Dtests=enabled <build_dir> meson test -C <build_dir>