diff options
author | Ron Dreslinski <rdreslin@umich.edu> | 2006-02-22 17:43:08 -0500 |
---|---|---|
committer | Ron Dreslinski <rdreslin@umich.edu> | 2006-02-22 17:43:08 -0500 |
commit | ceac38e41c5c0a7131d7581244713d33b5fff521 (patch) | |
tree | 0cd67e613f9a82f801dad8d513d9cfa0ef46d4c1 /mem/physical.hh | |
parent | b403abfbdb466573cedddf9d358b7a4b66f1e8e8 (diff) | |
download | gem5-ceac38e41c5c0a7131d7581244713d33b5fff521.tar.xz |
Remove unneeded functions, moving code around abit.
mem/physical.cc:
Remove unneeded functions. Need to add a .toString option for commands to making printing prettier.
mem/physical.hh:
Remove unneeded functions.
--HG--
extra : convert_revision : 3707d317f542d56c0a0758a2c5ba493b92fb0c87
Diffstat (limited to 'mem/physical.hh')
-rw-r--r-- | mem/physical.hh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mem/physical.hh b/mem/physical.hh index 06e6f1f0e..bac7e3d46 100644 --- a/mem/physical.hh +++ b/mem/physical.hh @@ -34,6 +34,7 @@ #include "base/range.hh" #include "mem/memory.hh" +#include "mem/packet.hh" // // Functional model for a contiguous block of physical memory. (i.e. RAM) @@ -94,18 +95,15 @@ class PhysicalMemory : public Memory protected: // error handling for prot_* functions - void prot_access_error(Addr addr, int size, const std::string &func); + void prot_access_error(Addr addr, int size, Command func); public: virtual int deviceBlockSize(); - // Read/Write arbitrary amounts of data to simulated memory space - void prot_read(Addr addr, uint8_t *p, int size); - void prot_write(Addr addr, const uint8_t *p, int size); void prot_memset(Addr addr, uint8_t val, int size); // fast back-door memory access for vtophys(), remote gdb, etc. - uint64_t phys_read_qword(Addr addr) const; + // uint64_t phys_read_qword(Addr addr) const; private: bool doTimingAccess(Packet &pkt); Tick doAtomicAccess(Packet &pkt); |