isa.cc (9431:8bb372a49e1b) isa.cc (9814:7ad2b0186a32)
1/*
1/*
2 * Copyright (c) 2010-2012 ARM Limited
2 * Copyright (c) 2010-2013 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

233 warn_once("The ccsidr register isn't implemented and "
234 "always reads as 0.\n");
235 break;
236 case MISCREG_CTR:
237 {
238 //all caches have the same line size in gem5
239 //4 byte words in ARM
240 unsigned lineSizeWords =
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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

233 warn_once("The ccsidr register isn't implemented and "
234 "always reads as 0.\n");
235 break;
236 case MISCREG_CTR:
237 {
238 //all caches have the same line size in gem5
239 //4 byte words in ARM
240 unsigned lineSizeWords =
241 tc->getCpuPtr()->getInstPort().peerBlockSize() / 4;
241 tc->getSystemPtr()->cacheLineSize() / 4;
242 unsigned log2LineSizeWords = 0;
243
244 while (lineSizeWords >>= 1) {
245 ++log2LineSizeWords;
246 }
247
248 CTR ctr = 0;
249 //log2 of minimun i-cache line size (words)

--- 422 unchanged lines hidden ---
242 unsigned log2LineSizeWords = 0;
243
244 while (lineSizeWords >>= 1) {
245 ++log2LineSizeWords;
246 }
247
248 CTR ctr = 0;
249 //log2 of minimun i-cache line size (words)

--- 422 unchanged lines hidden ---