cpu.cc (11793:ef606668d247) cpu.cc (12355:568ec3a0c614)
1/*
1/*
2 * Copyright (c) 2011,2013 ARM Limited
2 * Copyright (c) 2011,2013,2017 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

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

305 if (unverifiedReq) {
306 extraData = unverifiedReq->extraDataValid() ?
307 unverifiedReq->getExtraData() : true;
308 }
309
310 // If the request is to ZERO a cache block, there is no data to check
311 // against, but it's all zero. We need something to compare to, so use a
312 // const set of zeros.
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

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

305 if (unverifiedReq) {
306 extraData = unverifiedReq->extraDataValid() ?
307 unverifiedReq->getExtraData() : true;
308 }
309
310 // If the request is to ZERO a cache block, there is no data to check
311 // against, but it's all zero. We need something to compare to, so use a
312 // const set of zeros.
313 if (flags & Request::CACHE_BLOCK_ZERO) {
313 if (flags & Request::STORE_NO_DATA) {
314 assert(!data);
315 assert(sizeof(zero_data) <= fullSize);
316 data = zero_data;
317 }
318
319 if (unverifiedReq && unverifiedMemData &&
320 memcmp(data, unverifiedMemData, fullSize) && extraData) {
321 warn("%lli: Store value does not match value sent to memory! "

--- 41 unchanged lines hidden ---
314 assert(!data);
315 assert(sizeof(zero_data) <= fullSize);
316 data = zero_data;
317 }
318
319 if (unverifiedReq && unverifiedMemData &&
320 memcmp(data, unverifiedMemData, fullSize) && extraData) {
321 warn("%lli: Store value does not match value sent to memory! "

--- 41 unchanged lines hidden ---