fetch_unit.cc (11308:7d8836fd043d) fetch_unit.cc (11639:2e8d4bd8108d)
1/*
2 * Copyright (c) 2014-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:

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

110 }
111}
112
113void
114FetchUnit::initiateFetch(Wavefront *wavefront)
115{
116 // calculate the virtual address to fetch from the SQC
117 Addr vaddr = wavefront->pc() + wavefront->instructionBuffer.size();
1/*
2 * Copyright (c) 2014-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:

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

110 }
111}
112
113void
114FetchUnit::initiateFetch(Wavefront *wavefront)
115{
116 // calculate the virtual address to fetch from the SQC
117 Addr vaddr = wavefront->pc() + wavefront->instructionBuffer.size();
118 vaddr = wavefront->base_ptr + vaddr * sizeof(GPUStaticInst*);
118 vaddr = wavefront->basePtr + vaddr * sizeof(GPUStaticInst*);
119
120 DPRINTF(GPUTLB, "CU%d: WF[%d][%d]: Initiating fetch translation: %#x\n",
121 computeUnit->cu_id, wavefront->simdId, wavefront->wfSlotId, vaddr);
122
123 // Since this is an instruction prefetch, if you're split then just finish
124 // out the current line.
125 unsigned block_size = RubySystem::getBlockSizeBytes();
126 // check for split accesses

--- 167 unchanged lines hidden ---
119
120 DPRINTF(GPUTLB, "CU%d: WF[%d][%d]: Initiating fetch translation: %#x\n",
121 computeUnit->cu_id, wavefront->simdId, wavefront->wfSlotId, vaddr);
122
123 // Since this is an instruction prefetch, if you're split then just finish
124 // out the current line.
125 unsigned block_size = RubySystem::getBlockSizeBytes();
126 // check for split accesses

--- 167 unchanged lines hidden ---