base_set_assoc.cc (12629:c17d4dc2379e) base_set_assoc.cc (12637:bfc3cb9c7e6c)
1/*
2 * Copyright (c) 2012-2014 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

47
48#include "mem/cache/tags/base_set_assoc.hh"
49
50#include <string>
51
52#include "base/intmath.hh"
53#include "sim/core.hh"
54
1/*
2 * Copyright (c) 2012-2014 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

47
48#include "mem/cache/tags/base_set_assoc.hh"
49
50#include <string>
51
52#include "base/intmath.hh"
53#include "sim/core.hh"
54
55using namespace std;
56
57BaseSetAssoc::BaseSetAssoc(const Params *p)
58 :BaseTags(p), assoc(p->assoc), allocAssoc(p->assoc),
59 blks(p->size / p->block_size),
60 numSets(p->size / (p->block_size * p->assoc)),
61 sequentialAccess(p->sequential_access),
62 sets(p->size / (p->block_size * p->assoc)),
63 replacementPolicy(p->replacement_policy)
64{

--- 128 unchanged lines hidden ---
55BaseSetAssoc::BaseSetAssoc(const Params *p)
56 :BaseTags(p), assoc(p->assoc), allocAssoc(p->assoc),
57 blks(p->size / p->block_size),
58 numSets(p->size / (p->block_size * p->assoc)),
59 sequentialAccess(p->sequential_access),
60 sets(p->size / (p->block_size * p->assoc)),
61 replacementPolicy(p->replacement_policy)
62{

--- 128 unchanged lines hidden ---