51a52
> #include "enums/SMTQueuePolicy.hh"
65,71d65
< /** SMT policy. */
< enum LSQPolicy {
< Dynamic,
< Partitioned,
< Threshold
< };
<
309c303
< LSQPolicy lsqPolicy;
---
> SMTQueuePolicy lsqPolicy;
311,329d304
< /** Transform a SMT sharing policy string into a LSQPolicy value. */
< static LSQPolicy readLSQPolicy(const std::string& policy) {
< std::string policy_ = policy;
< std::transform(policy_.begin(), policy_.end(), policy_.begin(),
< (int(*)(int)) tolower);
< if (policy_ == "dynamic") {
< return Dynamic;
< } else if (policy_ == "partitioned") {
< return Partitioned;
< } else if (policy_ == "threshold") {
< return Threshold;
< }
< assert(0 && "Invalid LSQ Sharing Policy.Options Are:{Dynamic,"
< "Partitioned, Threshold}");
<
< // Some compilers complain if there is no return.
< return Dynamic;
< }
<
335c310
< static uint32_t maxLSQAllocation(const LSQPolicy& pol, uint32_t entries,
---
> static uint32_t maxLSQAllocation(SMTQueuePolicy pol, uint32_t entries,
337c312
< if (pol == Dynamic) {
---
> if (pol == SMTQueuePolicy::Dynamic) {
339c314
< } else if (pol == Partitioned) {
---
> } else if (pol == SMTQueuePolicy::Partitioned) {
342c317
< } else if (pol == Threshold) {
---
> } else if (pol == SMTQueuePolicy::Threshold) {