base_dyn_inst.hh (9046:a1104cc13db2) base_dyn_inst.hh (9814:7ad2b0186a32)
1/*
1/*
2 * Copyright (c) 2011 ARM Limited
2 * Copyright (c) 2011,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

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

971}
972
973template<class Impl>
974inline void
975BaseDynInst<Impl>::splitRequest(RequestPtr req, RequestPtr &sreqLow,
976 RequestPtr &sreqHigh)
977{
978 // Check to see if the request crosses the next level block boundary.
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

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

971}
972
973template<class Impl>
974inline void
975BaseDynInst<Impl>::splitRequest(RequestPtr req, RequestPtr &sreqLow,
976 RequestPtr &sreqHigh)
977{
978 // Check to see if the request crosses the next level block boundary.
979 unsigned block_size = cpu->getDataPort().peerBlockSize();
979 unsigned block_size = cpu->cacheLineSize();
980 Addr addr = req->getVaddr();
981 Addr split_addr = roundDown(addr + req->getSize() - 1, block_size);
982 assert(split_addr <= addr || split_addr - addr < block_size);
983
984 // Spans two blocks.
985 if (split_addr > addr) {
986 req->splitOnVaddr(split_addr, sreqLow, sreqHigh);
987 }

--- 71 unchanged lines hidden ---
980 Addr addr = req->getVaddr();
981 Addr split_addr = roundDown(addr + req->getSize() - 1, block_size);
982 assert(split_addr <= addr || split_addr - addr < block_size);
983
984 // Spans two blocks.
985 if (split_addr > addr) {
986 req->splitOnVaddr(split_addr, sreqLow, sreqHigh);
987 }

--- 71 unchanged lines hidden ---