locked_mem.hh (7783:9b880b40ac10) locked_mem.hh (7823:dac01f14f20f)
1/*
2 * Copyright (c) 2006-2007 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;

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

80 // livelock by warning on long sequences of failed
81 // store conditionals
82 int stCondFailures = xc->readStCondFailures();
83 stCondFailures++;
84 xc->setStCondFailures(stCondFailures);
85 if (stCondFailures % 100000 == 0) {
86 warn("%i: context %d: %d consecutive "
87 "store conditional failures\n",
1/*
2 * Copyright (c) 2006-2007 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;

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

80 // livelock by warning on long sequences of failed
81 // store conditionals
82 int stCondFailures = xc->readStCondFailures();
83 stCondFailures++;
84 xc->setStCondFailures(stCondFailures);
85 if (stCondFailures % 100000 == 0) {
86 warn("%i: context %d: %d consecutive "
87 "store conditional failures\n",
88 curTick, xc->contextId(), stCondFailures);
88 curTick(), xc->contextId(), stCondFailures);
89 }
90
91 if (!lock_flag){
92 DPRINTF(LLSC, "[tid:%i]: Lock Flag Set, "
93 "Store Conditional Failed.\n",
94 req->threadId());
95 } else if ((req->getPaddr() & ~0xf) != lock_addr) {
96 DPRINTF(LLSC, "[tid:%i]: Load-Link Address Mismatch, "

--- 14 unchanged lines hidden ---
89 }
90
91 if (!lock_flag){
92 DPRINTF(LLSC, "[tid:%i]: Lock Flag Set, "
93 "Store Conditional Failed.\n",
94 req->threadId());
95 } else if ((req->getPaddr() & ~0xf) != lock_addr) {
96 DPRINTF(LLSC, "[tid:%i]: Load-Link Address Mismatch, "

--- 14 unchanged lines hidden ---