Merge zizzer.eecs.umich.edu:/bk/newmem

into  vm1.(none):/home/stever/bk/newmem-head

--HG--
extra : convert_revision : c2350e01a052114a264f26551b13fca03a835c61
This commit is contained in:
Steve Reinhardt 2007-02-07 10:55:14 -08:00
commit 6b37bb6710
3 changed files with 4 additions and 3 deletions

View file

@ -342,8 +342,8 @@ Cache<TagStore,Coherence>::handleFill(BlkType *blk, MSHR * mshr,
target->getPtr<uint8_t>(), target->getSize()); target->getPtr<uint8_t>(), target->getSize());
} }
} else { } else {
if (pkt->req->isLocked()) { if (target->req->isLocked()) {
blk->trackLoadLocked(pkt->req); blk->trackLoadLocked(target->req);
} }
std::memcpy(target->getPtr<uint8_t>(), std::memcpy(target->getPtr<uint8_t>(),
blk->data + target->getOffset(blkSize), blk->data + target->getOffset(blkSize),

View file

@ -42,6 +42,7 @@
#include <list> #include <list>
#include <bitset> #include <bitset>
#include "base/compiler.hh"
#include "base/misc.hh" #include "base/misc.hh"
#include "mem/request.hh" #include "mem/request.hh"
#include "sim/host.hh" #include "sim/host.hh"

View file

@ -40,7 +40,7 @@ using namespace std;
int int
main() main()
{ {
char foo[9]; char foo[] = "foo";
cprintf("%s\n", foo); cprintf("%s\n", foo);
cprintf("%d\n", 'A'); cprintf("%d\n", 'A');