diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-04-12 17:46:32 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-04-12 17:46:32 -0400 |
commit | 2dcc9ec5b2f3bb094b53a47fafcf4e0820f7b24b (patch) | |
tree | 8436c999b9b30150067e40f1eac7e335d07caf60 /cpu/simple/cpu.cc | |
parent | f69801d9e0abacf4ce6e75eab8b68298670ac743 (diff) | |
parent | 81a735a7166f206848a3ec5f7a8153336347f3ae (diff) | |
download | gem5-2dcc9ec5b2f3bb094b53a47fafcf4e0820f7b24b.tar.xz |
Merge zizzer:/bk/newmem
into zeep.eecs.umich.edu:/z/saidi/work/m5.newmem
--HG--
extra : convert_revision : 5fc80b28362c4acc4dee576f60296b81aea004f2
Diffstat (limited to 'cpu/simple/cpu.cc')
-rw-r--r-- | cpu/simple/cpu.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpu/simple/cpu.cc b/cpu/simple/cpu.cc index ca88b0701..6cef59796 100644 --- a/cpu/simple/cpu.cc +++ b/cpu/simple/cpu.cc @@ -507,6 +507,7 @@ SimpleCPU::read(Addr addr, T &data, unsigned flags) data_read_pkt->req = data_read_req; data_read_pkt->data = new uint8_t[8]; #endif + data_read_pkt->reset(); data_read_pkt->addr = data_read_req->getPaddr(); data_read_pkt->size = sizeof(T); @@ -623,6 +624,7 @@ SimpleCPU::write(T data, Addr addr, unsigned flags, uint64_t *res) data_write_pkt->data = new uint8_t[64]; memcpy(data_write_pkt->data, &data, sizeof(T)); #else + data_write_pkt->reset(); data_write_pkt->data = (uint8_t *)&data; #endif data_write_pkt->addr = data_write_req->getPaddr(); @@ -990,6 +992,7 @@ SimpleCPU::tick() ifetch_pkt->req = ifetch_req; ifetch_pkt->size = sizeof(MachInst); #endif + ifetch_pkt->reset(); ifetch_pkt->addr = ifetch_req->getPaddr(); sendIcacheRequest(ifetch_pkt); |