stride.cc (12727:56c23b54bcb1) stride.cc (13422:4ec52da74cd5)
1/*
2 * Copyright (c) 2012-2013, 2015 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

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

64 minConf(p->min_conf),
65 startConf(p->start_conf),
66 pcTableAssoc(p->table_assoc),
67 pcTableSets(p->table_sets),
68 useMasterId(p->use_master_id),
69 degree(p->degree),
70 pcTable(pcTableAssoc, pcTableSets, name())
71{
1/*
2 * Copyright (c) 2012-2013, 2015 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

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

64 minConf(p->min_conf),
65 startConf(p->start_conf),
66 pcTableAssoc(p->table_assoc),
67 pcTableSets(p->table_sets),
68 useMasterId(p->use_master_id),
69 degree(p->degree),
70 pcTable(pcTableAssoc, pcTableSets, name())
71{
72 // Don't consult stride prefetcher on instruction accesses
73 onInst = false;
74
75 assert(isPowerOf2(pcTableSets));
76}
77
78StridePrefetcher::StrideEntry**
79StridePrefetcher::PCTable::allocateNewContext(int context)
80{
81 auto res = entries.insert(std::make_pair(context,
82 new StrideEntry*[pcTableSets]));

--- 144 unchanged lines hidden ---
72 assert(isPowerOf2(pcTableSets));
73}
74
75StridePrefetcher::StrideEntry**
76StridePrefetcher::PCTable::allocateNewContext(int context)
77{
78 auto res = entries.insert(std::make_pair(context,
79 new StrideEntry*[pcTableSets]));

--- 144 unchanged lines hidden ---