se_translating_port_proxy.hh (8852:c744483edfcf) se_translating_port_proxy.hh (8861:56d011130987)
1/*
2 * Copyright (c) 2011 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 69 unchanged lines hidden (view full) ---

78 PageTable *pTable;
79 Process *process;
80 AllocType allocating;
81
82 public:
83 SETranslatingPortProxy(Port& port, Process* p, AllocType alloc);
84 virtual ~SETranslatingPortProxy();
85
1/*
2 * Copyright (c) 2011 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 69 unchanged lines hidden (view full) ---

78 PageTable *pTable;
79 Process *process;
80 AllocType allocating;
81
82 public:
83 SETranslatingPortProxy(Port& port, Process* p, AllocType alloc);
84 virtual ~SETranslatingPortProxy();
85
86 bool tryReadBlob(Addr addr, uint8_t *p, int size);
87 bool tryWriteBlob(Addr addr, uint8_t *p, int size);
88 bool tryMemsetBlob(Addr addr, uint8_t val, int size);
89 bool tryWriteString(Addr addr, const char *str);
90 bool tryReadString(std::string &str, Addr addr);
86 bool tryReadBlob(Addr addr, uint8_t *p, int size) const;
87 bool tryWriteBlob(Addr addr, uint8_t *p, int size) const;
88 bool tryMemsetBlob(Addr addr, uint8_t val, int size) const;
89 bool tryWriteString(Addr addr, const char *str) const;
90 bool tryReadString(std::string &str, Addr addr) const;
91
91
92 virtual void readBlob(Addr addr, uint8_t *p, int size);
93 virtual void writeBlob(Addr addr, uint8_t *p, int size);
94 virtual void memsetBlob(Addr addr, uint8_t val, int size);
92 virtual void readBlob(Addr addr, uint8_t *p, int size) const;
93 virtual void writeBlob(Addr addr, uint8_t *p, int size) const;
94 virtual void memsetBlob(Addr addr, uint8_t val, int size) const;
95
95
96 void writeString(Addr addr, const char *str);
97 void readString(std::string &str, Addr addr);
96 void writeString(Addr addr, const char *str) const;
97 void readString(std::string &str, Addr addr) const;
98};
99
100#endif // __MEM_SE_TRANSLATING_PORT_PROXY_HH__
98};
99
100#endif // __MEM_SE_TRANSLATING_PORT_PROXY_HH__