gpu_nomali.cc (11619:8bc53d5565ba) gpu_nomali.cc (13230:2988dc5d1d6f)
1/*
2 * Copyright (c) 2014-2016 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

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

155 if (addr + size >= nomaliInfo.reg_size)
156 panic("GPU register '0x%x' out of range!\n", addr);
157
158 if (size != 4)
159 panic("Unexpected GPU register read size: %i\n", size);
160 else if (addr & 0x3)
161 panic("Unaligned GPU read: %i\n", size);
162
1/*
2 * Copyright (c) 2014-2016 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

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

155 if (addr + size >= nomaliInfo.reg_size)
156 panic("GPU register '0x%x' out of range!\n", addr);
157
158 if (size != 4)
159 panic("Unexpected GPU register read size: %i\n", size);
160 else if (addr & 0x3)
161 panic("Unaligned GPU read: %i\n", size);
162
163 pkt->set(readReg(addr));
163 pkt->setLE<uint32_t>(readReg(addr));
164 pkt->makeResponse();
165
166 return 0;
167}
168
169Tick
170NoMaliGpu::write(PacketPtr pkt)
171{

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

176 if (addr + size >= nomaliInfo.reg_size)
177 panic("GPU register '0x%x' out of range!\n", addr);
178
179 if (size != 4)
180 panic("Unexpected GPU register write size: %i\n", size);
181 else if (addr & 0x3)
182 panic("Unaligned GPU write: %i\n", size);
183
164 pkt->makeResponse();
165
166 return 0;
167}
168
169Tick
170NoMaliGpu::write(PacketPtr pkt)
171{

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

176 if (addr + size >= nomaliInfo.reg_size)
177 panic("GPU register '0x%x' out of range!\n", addr);
178
179 if (size != 4)
180 panic("Unexpected GPU register write size: %i\n", size);
181 else if (addr & 0x3)
182 panic("Unaligned GPU write: %i\n", size);
183
184 writeReg(addr, pkt->get());
184 writeReg(addr, pkt->getLE<uint32_t>());
185 pkt->makeAtomicResponse();
186
187 return 0;
188}
189
190AddrRangeList
191NoMaliGpu::getAddrRanges() const
192{

--- 200 unchanged lines hidden ---
185 pkt->makeAtomicResponse();
186
187 return 0;
188}
189
190AddrRangeList
191NoMaliGpu::getAddrRanges() const
192{

--- 200 unchanged lines hidden ---