mem_dep_unit_impl.hh (8515:12420b96b364) mem_dep_unit_impl.hh (8516:a9c0d2ab490a)
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

280{
281 InstSeqNum barr_sn = barr_inst->seqNum;
282 // Memory barriers block loads and stores, write barriers only stores.
283 if (barr_inst->isMemBarrier()) {
284 loadBarrier = true;
285 loadBarrierSN = barr_sn;
286 storeBarrier = true;
287 storeBarrierSN = barr_sn;
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

280{
281 InstSeqNum barr_sn = barr_inst->seqNum;
282 // Memory barriers block loads and stores, write barriers only stores.
283 if (barr_inst->isMemBarrier()) {
284 loadBarrier = true;
285 loadBarrierSN = barr_sn;
286 storeBarrier = true;
287 storeBarrierSN = barr_sn;
288 DPRINTF(MemDepUnit, "Inserted a memory barrier\n");
288 DPRINTF(MemDepUnit, "Inserted a memory barrier %s SN:%lli\n",
289 barr_inst->pcState(),barr_sn);
289 } else if (barr_inst->isWriteBarrier()) {
290 storeBarrier = true;
291 storeBarrierSN = barr_sn;
292 DPRINTF(MemDepUnit, "Inserted a write barrier\n");
293 }
294
295 ThreadID tid = barr_inst->threadNumber;
296

--- 287 unchanged lines hidden ---
290 } else if (barr_inst->isWriteBarrier()) {
291 storeBarrier = true;
292 storeBarrierSN = barr_sn;
293 DPRINTF(MemDepUnit, "Inserted a write barrier\n");
294 }
295
296 ThreadID tid = barr_inst->threadNumber;
297

--- 287 unchanged lines hidden ---