stride.cc (10771:ea35886cd847) stride.cc (11321:02e930db812d)
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

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

109 Addr pkt_addr = pkt->getAddr();
110 Addr pc = pkt->req->getPC();
111 bool is_secure = pkt->isSecure();
112 MasterID master_id = useMasterId ? pkt->req->masterId() : 0;
113
114 // Lookup pc-based information
115 StrideEntry *entry;
116
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

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

109 Addr pkt_addr = pkt->getAddr();
110 Addr pc = pkt->req->getPC();
111 bool is_secure = pkt->isSecure();
112 MasterID master_id = useMasterId ? pkt->req->masterId() : 0;
113
114 // Lookup pc-based information
115 StrideEntry *entry;
116
117 if(pcTableHit(pc, is_secure, master_id, entry)) {
117 if (pcTableHit(pc, is_secure, master_id, entry)) {
118 // Hit in table
119 int new_stride = pkt_addr - entry->lastAddr;
120 bool stride_match = (new_stride == entry->stride);
121
122 // Adjust confidence for stride entry
123 if (stride_match && new_stride != 0) {
124 if (entry->confidence < maxConf)
125 entry->confidence++;

--- 94 unchanged lines hidden ---
118 // Hit in table
119 int new_stride = pkt_addr - entry->lastAddr;
120 bool stride_match = (new_stride == entry->stride);
121
122 // Adjust confidence for stride entry
123 if (stride_match && new_stride != 0) {
124 if (entry->confidence < maxConf)
125 entry->confidence++;

--- 94 unchanged lines hidden ---