diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2004-02-02 10:47:21 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2004-02-02 10:47:21 -0800 |
commit | 7b07b0877f05cffa93b782a76a15791c1126216a (patch) | |
tree | 9bc0cfd05f4f8bb0de7560c46e7bc144900e44e9 /dev | |
parent | 7c8413db101e1f0c92b10aab7130b34fe888391d (diff) | |
download | gem5-7b07b0877f05cffa93b782a76a15791c1126216a.tar.xz |
Change MemReqPtr parameters to references.
This avoids incrementing and decrementing the MemReq
reference counters on every call and return.
arch/alpha/alpha_memory.cc:
arch/alpha/alpha_memory.hh:
cpu/exec_context.hh:
cpu/memtest/memtest.cc:
cpu/memtest/memtest.hh:
dev/alpha_console.cc:
dev/alpha_console.hh:
Change MemReqPtr parameters to references.
--HG--
extra : convert_revision : 3ba18bdd9f996563988402576bfdd3430e1ab1e5
Diffstat (limited to 'dev')
-rw-r--r-- | dev/alpha_console.cc | 4 | ||||
-rw-r--r-- | dev/alpha_console.hh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/dev/alpha_console.cc b/dev/alpha_console.cc index 8e59db932..e708be514 100644 --- a/dev/alpha_console.cc +++ b/dev/alpha_console.cc @@ -73,7 +73,7 @@ AlphaConsole::AlphaConsole(const string &name, SimConsole *cons, } Fault -AlphaConsole::read(MemReqPtr req, uint8_t *data) +AlphaConsole::read(MemReqPtr &req, uint8_t *data) { memset(data, 0, req->size); uint64_t val; @@ -109,7 +109,7 @@ AlphaConsole::read(MemReqPtr req, uint8_t *data) } Fault -AlphaConsole::write(MemReqPtr req, const uint8_t *data) +AlphaConsole::write(MemReqPtr &req, const uint8_t *data) { uint64_t val; diff --git a/dev/alpha_console.hh b/dev/alpha_console.hh index 9e774773e..c39b8e8d4 100644 --- a/dev/alpha_console.hh +++ b/dev/alpha_console.hh @@ -94,8 +94,8 @@ class AlphaConsole : public MmapDevice /** * memory mapped reads and writes */ - virtual Fault read(MemReqPtr req, uint8_t *data); - virtual Fault write(MemReqPtr req, const uint8_t *data); + virtual Fault read(MemReqPtr &req, uint8_t *data); + virtual Fault write(MemReqPtr &req, const uint8_t *data); /** * standard serialization routines for checkpointing |