deriv.cc (11793:ef606668d247) deriv.cc (13559:e9983a972327)
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 43 unchanged lines hidden (view full) ---

52 // In non-full-system mode, we infer the number of threads from
53 // the workload if it's not explicitly specified.
54 actual_num_threads =
55 (numThreads >= workload.size()) ? numThreads : workload.size();
56 }
57
58 numThreads = actual_num_threads;
59
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 43 unchanged lines hidden (view full) ---

52 // In non-full-system mode, we infer the number of threads from
53 // the workload if it's not explicitly specified.
54 actual_num_threads =
55 (numThreads >= workload.size()) ? numThreads : workload.size();
56 }
57
58 numThreads = actual_num_threads;
59
60 // Default smtFetchPolicy to "RoundRobin", if necessary.
61 std::string round_robin_policy = "RoundRobin";
62 std::string single_thread = "SingleThread";
60 if (actual_num_threads > 1 && smtFetchPolicy == FetchPolicy::SingleThread)
61 smtFetchPolicy = FetchPolicy::RoundRobin;
63
62
64 if (actual_num_threads > 1 && single_thread.compare(smtFetchPolicy) == 0)
65 smtFetchPolicy = round_robin_policy;
66 else
67 smtFetchPolicy = smtFetchPolicy;
68
69 return new DerivO3CPU(this);
70}
63 return new DerivO3CPU(this);
64}