se_translating_port_proxy.hh (12532:a86ce386add1) se_translating_port_proxy.hh (14008:e36048ba1c2c)
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

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

76
77 private:
78 EmulationPageTable *pTable;
79 Process *process;
80 AllocType allocating;
81
82 public:
83 SETranslatingPortProxy(MasterPort& port, Process* p, AllocType alloc);
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

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

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