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:

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

385 getLds() const
386 {
387 return lds;
388 }
389
390 int32_t
391 getRefCounter(const uint32_t dispatchId, const uint32_t wgId) const;
392
393 int cacheLineSize() const { return _cacheLineSize; }
394
395 bool
396 sendToLds(GPUDynInstPtr gpuDynInst) __attribute__((warn_unused_result));
397
398 typedef std::unordered_map<Addr, std::pair<int, int>> pageDataStruct;
399 pageDataStruct pageAccesses;
400
401 class CUExitCallback : public Callback
402 {

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

764 public:
765 std::list<waveIdentifier> waveIDQueue;
766 };
767 std::map<unsigned, waveQueue> xactCasLoadMap;
768
769 uint64_t getAndIncSeqNum() { return globalSeqNum++; }
770
771 private:
772 const int _cacheLineSize;
773 uint64_t globalSeqNum;
774 int wavefrontSize;
775 GPUStaticInst *kernelLaunchInst;
776};
777
778#endif // __COMPUTE_UNIT_HH__