shader.hh (12126:06c1fbaa5724) | shader.hh (12749:223c83ed9979) |
---|---|
1/* 2 * Copyright (c) 2011-2015 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 167 unchanged lines hidden (view full) --- 176 void ReadMem(uint64_t address, void *ptr, uint32_t sz, int cu_id, 177 bool suppress_func_errors); 178 179 void WriteMem(uint64_t address, void *ptr, uint32_t sz, int cu_id); 180 181 void WriteMem(uint64_t address, void *ptr, uint32_t sz, int cu_id, 182 bool suppress_func_errors); 183 | 1/* 2 * Copyright (c) 2011-2015 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 167 unchanged lines hidden (view full) --- 176 void ReadMem(uint64_t address, void *ptr, uint32_t sz, int cu_id, 177 bool suppress_func_errors); 178 179 void WriteMem(uint64_t address, void *ptr, uint32_t sz, int cu_id); 180 181 void WriteMem(uint64_t address, void *ptr, uint32_t sz, int cu_id, 182 bool suppress_func_errors); 183 |
184 void doFunctionalAccess(RequestPtr req, MemCmd cmd, void *data, | 184 void doFunctionalAccess(const RequestPtr &req, MemCmd cmd, void *data, |
185 bool suppress_func_errors, int cu_id); 186 187 void 188 registerCU(int cu_id, ComputeUnit *compute_unit) 189 { 190 cuList[cu_id] = compute_unit; 191 } 192 193 void handshake(GpuDispatcher *dispatcher); 194 bool dispatch_workgroups(NDRange *ndr); 195 Addr mmap(int length); 196 void functionalTLBAccess(PacketPtr pkt, int cu_id, BaseTLB::Mode mode); 197 void updateContext(int cid); 198 void hostWakeUp(BaseCPU *cpu); 199}; 200 201#endif // __SHADER_HH__ | 185 bool suppress_func_errors, int cu_id); 186 187 void 188 registerCU(int cu_id, ComputeUnit *compute_unit) 189 { 190 cuList[cu_id] = compute_unit; 191 } 192 193 void handshake(GpuDispatcher *dispatcher); 194 bool dispatch_workgroups(NDRange *ndr); 195 Addr mmap(int length); 196 void functionalTLBAccess(PacketPtr pkt, int cu_id, BaseTLB::Mode mode); 197 void updateContext(int cid); 198 void hostWakeUp(BaseCPU *cpu); 199}; 200 201#endif // __SHADER_HH__ |