summaryrefslogtreecommitdiff
path: root/cpu/exec_context.hh
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2003-10-18 21:21:14 -0700
committerSteve Reinhardt <stever@eecs.umich.edu>2003-10-18 21:21:14 -0700
commit83d32482dc126d028399ca6701642047f28276dd (patch)
tree737a9f3e2a6974a559046a0da03c5b6db2db7a26 /cpu/exec_context.hh
parent1bebc1ab2f49af51cf899be6cb88409abbd81461 (diff)
downloadgem5-83d32482dc126d028399ca6701642047f28276dd.tar.xz
Add comment to elaborate on store-conditional result code (and remove
stale reference to machine.def). arch/alpha/isa_desc: Add comment describing store-conditional result code cpu/exec_context.hh: update comments --HG-- extra : convert_revision : ac59e0ad7a9440cb6656617fdf05495b59c68f55
Diffstat (limited to 'cpu/exec_context.hh')
-rw-r--r--cpu/exec_context.hh13
1 files changed, 6 insertions, 7 deletions
diff --git a/cpu/exec_context.hh b/cpu/exec_context.hh
index ddfc53684..4a2688f1c 100644
--- a/cpu/exec_context.hh
+++ b/cpu/exec_context.hh
@@ -218,7 +218,7 @@ class ExecContext
cregs = &req->xc->regs.miscRegs;
if (req->flags & UNCACHEABLE) {
- // Don't update result register (see machine.def)
+ // Don't update result register (see stq_c in isa_desc)
req->result = 2;
req->xc->storeCondFailures = 0;//Needed? [RGD]
} else {
@@ -239,12 +239,11 @@ class ExecContext
}
}
- // Need to clear any locked flags on other proccessors for this
- // address
- // Only do this for succsful Store Conditionals and all other
- // stores (WH64?)
- // Unsuccesful Store Conditionals would have returned above,
- // and wouldn't fall through
+ // Need to clear any locked flags on other proccessors for
+ // this address. Only do this for succsful Store Conditionals
+ // and all other stores (WH64?). Unsuccessful Store
+ // Conditionals would have returned above, and wouldn't fall
+ // through.
for (int i = 0; i < system->xcvec.size(); i++){
cregs = &system->xcvec[i]->regs.miscRegs;
if ((cregs->lock_addr & ~0xf) == (req->paddr & ~0xf)) {