multi_level_page_table.hh (10556:1e3b3c7a0cba) | multi_level_page_table.hh (10558:426665ec11a9) |
---|---|
1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 133 unchanged lines hidden (view full) --- 142 143public: 144 MultiLevelPageTable(const std::string &__name, uint64_t _pid, 145 System *_sys); 146 ~MultiLevelPageTable(); 147 148 void initState(ThreadContext* tc); 149 | 1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 133 unchanged lines hidden (view full) --- 142 143public: 144 MultiLevelPageTable(const std::string &__name, uint64_t _pid, 145 System *_sys); 146 ~MultiLevelPageTable(); 147 148 void initState(ThreadContext* tc); 149 |
150 void map(Addr vaddr, Addr paddr, int64_t size, bool clobber = false); | 150 void map(Addr vaddr, Addr paddr, int64_t size, 151 uint64_t flags = 0); |
151 void remap(Addr vaddr, int64_t size, Addr new_vaddr); 152 void unmap(Addr vaddr, int64_t size); 153 bool isUnmapped(Addr vaddr, int64_t size); 154 bool lookup(Addr vaddr, TheISA::TlbEntry &entry); 155 void serialize(std::ostream &os); 156 void unserialize(Checkpoint *cp, const std::string §ion); 157}; 158#endif // __MEM_MULTI_LEVEL_PAGE_TABLE_HH__ | 152 void remap(Addr vaddr, int64_t size, Addr new_vaddr); 153 void unmap(Addr vaddr, int64_t size); 154 bool isUnmapped(Addr vaddr, int64_t size); 155 bool lookup(Addr vaddr, TheISA::TlbEntry &entry); 156 void serialize(std::ostream &os); 157 void unserialize(Checkpoint *cp, const std::string §ion); 158}; 159#endif // __MEM_MULTI_LEVEL_PAGE_TABLE_HH__ |