locked_mem.hh (5596:cdc8893c649e) locked_mem.hh (5712:199d31b47f7b)
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 % 10 == 0) {
86 warn("%i: cpu %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 % 10 == 0) {
86 warn("%i: cpu %d: %d consecutive "
87 "store conditional failures\n",
88 curTick, xc->readCpuId(), stCondFailures);
88 curTick, xc->cpuId(), stCondFailures);
89 }
90
91 if (stCondFailures == 5000) {
92 panic("Max (5000) Store Conditional Fails Reached. Check Code For Deadlock.\n");
93 }
94
95 if (!lock_flag){
96 DPRINTF(LLSC, "[tid:%i]: Lock Flag Set, Store Conditional Failed.\n",

--- 17 unchanged lines hidden ---
89 }
90
91 if (stCondFailures == 5000) {
92 panic("Max (5000) Store Conditional Fails Reached. Check Code For Deadlock.\n");
93 }
94
95 if (!lock_flag){
96 DPRINTF(LLSC, "[tid:%i]: Lock Flag Set, Store Conditional Failed.\n",

--- 17 unchanged lines hidden ---