39a40
> #include "arch/locked_mem.hh"
513,514c514,519
< cpu->lockAddr = req->getPaddr();
< cpu->lockFlag = true;
---
> // Disable recording the result temporarily. Writing to misc
> // regs normally updates the result, but this is not the
> // desired behavior when handling store conditionals.
> load_inst->recordResult = false;
> TheISA::handleLockedRead(load_inst.get(), req);
> load_inst->recordResult = true;