base_set_assoc.cc (12684:44ebd2bc020f) base_set_assoc.cc (12727:56c23b54bcb1)
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

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

42
43/**
44 * @file
45 * Definitions of a base set associative tag store.
46 */
47
48#include "mem/cache/tags/base_set_assoc.hh"
49
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

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

42
43/**
44 * @file
45 * Definitions of a base set associative tag store.
46 */
47
48#include "mem/cache/tags/base_set_assoc.hh"
49
50#include <cassert>
50#include <string>
51
52#include "base/intmath.hh"
51#include <string>
52
53#include "base/intmath.hh"
54#include "mem/request.hh"
53
54BaseSetAssoc::BaseSetAssoc(const Params *p)
55 :BaseTags(p), assoc(p->assoc), allocAssoc(p->assoc),
56 blks(p->size / p->block_size),
57 numSets(p->size / (p->block_size * p->assoc)),
58 sequentialAccess(p->sequential_access),
59 sets(p->size / (p->block_size * p->assoc)),
60 replacementPolicy(p->replacement_policy)

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

--- 137 unchanged lines hidden ---