diff --git a/src/dev/amdgpu/amdgpu_device.hh b/src/dev/amdgpu/amdgpu_device.hh index 09c13c9a53..6697d8248b 100644 --- a/src/dev/amdgpu/amdgpu_device.hh +++ b/src/dev/amdgpu/amdgpu_device.hh @@ -121,16 +121,6 @@ class AMDGPUDevice : public PciDevice bool checkpoint_before_mmios; int init_interrupt_count; - // GART aperture. This is the initial 1-level privledged page table that - // resides in framebuffer memory. - uint32_t gartBase = 0x0; - uint32_t gartSize = 0x0; - - // MMHUB aperture. These addresses are set by the GPU. For now we wait - // until the driver reads them before setting them. - uint64_t mmhubBase = 0x0; - uint64_t mmhubTop = 0x0; - // VMIDs data structures // map of pasids to vmids std::unordered_map idMap; diff --git a/src/dev/amdgpu/system_hub.cc b/src/dev/amdgpu/system_hub.cc index b55cc52779..90dcb7fb8d 100644 --- a/src/dev/amdgpu/system_hub.cc +++ b/src/dev/amdgpu/system_hub.cc @@ -39,7 +39,7 @@ namespace gem5 void AMDGPUSystemHub::sendRequest(PacketPtr pkt, Event *callback) { - ResponseEvent *dmaRespEvent = new ResponseEvent(pkt, callback); + ResponseEvent *dmaRespEvent = new ResponseEvent(callback); Tick delay = 0; // Assuming read XOR write (i.e., not an atomic). @@ -59,8 +59,8 @@ AMDGPUSystemHub::dmaResponse(PacketPtr pkt) { } -AMDGPUSystemHub::ResponseEvent::ResponseEvent(PacketPtr pkt, Event *_callback) - : reqPkt(pkt), callback(_callback) +AMDGPUSystemHub::ResponseEvent::ResponseEvent(Event *_callback) + : callback(_callback) { // Delete this event after process is called setFlags(Event::AutoDelete); diff --git a/src/dev/amdgpu/system_hub.hh b/src/dev/amdgpu/system_hub.hh index 2de627fed0..0b48c3bc01 100644 --- a/src/dev/amdgpu/system_hub.hh +++ b/src/dev/amdgpu/system_hub.hh @@ -66,11 +66,10 @@ class AMDGPUSystemHub : public DmaDevice class ResponseEvent : public Event { - PacketPtr reqPkt; Event *callback; public: - ResponseEvent(PacketPtr pkt, Event *_callback); + ResponseEvent(Event *_callback); void process();