base_dyn_inst.hh (8832:247fee427324) | base_dyn_inst.hh (8850:ed91b534ed04) |
---|---|
1/* 2 * Copyright (c) 2011 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 --- 961 unchanged lines hidden (view full) --- 970} 971 972template<class Impl> 973inline void 974BaseDynInst<Impl>::splitRequest(RequestPtr req, RequestPtr &sreqLow, 975 RequestPtr &sreqHigh) 976{ 977 // Check to see if the request crosses the next level block boundary. | 1/* 2 * Copyright (c) 2011 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 --- 961 unchanged lines hidden (view full) --- 970} 971 972template<class Impl> 973inline void 974BaseDynInst<Impl>::splitRequest(RequestPtr req, RequestPtr &sreqLow, 975 RequestPtr &sreqHigh) 976{ 977 // Check to see if the request crosses the next level block boundary. |
978 unsigned block_size = cpu->getDcachePort()->peerBlockSize(); | 978 unsigned block_size = cpu->getDataPort().peerBlockSize(); |
979 Addr addr = req->getVaddr(); 980 Addr split_addr = roundDown(addr + req->getSize() - 1, block_size); 981 assert(split_addr <= addr || split_addr - addr < block_size); 982 983 // Spans two blocks. 984 if (split_addr > addr) { 985 req->splitOnVaddr(split_addr, sreqLow, sreqHigh); 986 } --- 72 unchanged lines hidden --- | 979 Addr addr = req->getVaddr(); 980 Addr split_addr = roundDown(addr + req->getSize() - 1, block_size); 981 assert(split_addr <= addr || split_addr - addr < block_size); 982 983 // Spans two blocks. 984 if (split_addr > addr) { 985 req->splitOnVaddr(split_addr, sreqLow, sreqHigh); 986 } --- 72 unchanged lines hidden --- |