commit_impl.hh (13429:a1e199fd8122) commit_impl.hh (13449:2f7efa89c58b)
1/*
2 * Copyright 2014 Google, Inc.
3 * Copyright (c) 2010-2014, 2017 ARM Limited
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

44#ifndef __CPU_O3_COMMIT_IMPL_HH__
45#define __CPU_O3_COMMIT_IMPL_HH__
46
47#include <algorithm>
48#include <set>
49#include <string>
50
51#include "arch/utility.hh"
1/*
2 * Copyright 2014 Google, Inc.
3 * Copyright (c) 2010-2014, 2017 ARM Limited
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

44#ifndef __CPU_O3_COMMIT_IMPL_HH__
45#define __CPU_O3_COMMIT_IMPL_HH__
46
47#include <algorithm>
48#include <set>
49#include <string>
50
51#include "arch/utility.hh"
52#include "base/loader/symtab.hh"
53#include "base/cp_annotate.hh"
52#include "base/cp_annotate.hh"
53#include "base/loader/symtab.hh"
54#include "base/logging.hh"
54#include "config/the_isa.hh"
55#include "cpu/checker/cpu.hh"
56#include "cpu/o3/commit.hh"
57#include "cpu/o3/thread_state.hh"
58#include "cpu/base.hh"
59#include "cpu/exetrace.hh"
60#include "cpu/timebuf.hh"
61#include "debug/Activity.hh"

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

122 }
123
124 DPRINTF(Commit,"Commit Policy set to Round Robin.\n");
125 } else if (policy == "oldestready"){
126 commitPolicy = OldestReady;
127
128 DPRINTF(Commit,"Commit Policy set to Oldest Ready.");
129 } else {
55#include "config/the_isa.hh"
56#include "cpu/checker/cpu.hh"
57#include "cpu/o3/commit.hh"
58#include "cpu/o3/thread_state.hh"
59#include "cpu/base.hh"
60#include "cpu/exetrace.hh"
61#include "cpu/timebuf.hh"
62#include "debug/Activity.hh"

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

123 }
124
125 DPRINTF(Commit,"Commit Policy set to Round Robin.\n");
126 } else if (policy == "oldestready"){
127 commitPolicy = OldestReady;
128
129 DPRINTF(Commit,"Commit Policy set to Oldest Ready.");
130 } else {
130 assert(0 && "Invalid SMT Commit Policy. Options Are: {Aggressive,"
131 "RoundRobin,OldestReady}");
131 panic("Invalid SMT commit policy. Options are: Aggressive, "
132 "RoundRobin, OldestReady");
132 }
133
134 for (ThreadID tid = 0; tid < numThreads; tid++) {
135 commitStatus[tid] = Idle;
136 changedROBNumEntries[tid] = false;
137 checkEmptyROB[tid] = false;
138 trapInFlight[tid] = false;
139 committedStores[tid] = false;

--- 1388 unchanged lines hidden ---
133 }
134
135 for (ThreadID tid = 0; tid < numThreads; tid++) {
136 commitStatus[tid] = Idle;
137 changedROBNumEntries[tid] = false;
138 checkEmptyROB[tid] = false;
139 trapInFlight[tid] = false;
140 committedStores[tid] = false;

--- 1388 unchanged lines hidden ---