page_table.hh (10318:98771a936b61) | page_table.hh (10556:1e3b3c7a0cba) |
---|---|
1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2003 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 79 unchanged lines hidden (view full) --- 88 virtual void initState(ThreadContext* tc) = 0; 89 90 // for DPRINTF compatibility 91 const std::string name() const { return _name; } 92 93 Addr pageAlign(Addr a) { return (a & ~offsetMask); } 94 Addr pageOffset(Addr a) { return (a & offsetMask); } 95 | 1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2003 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 79 unchanged lines hidden (view full) --- 88 virtual void initState(ThreadContext* tc) = 0; 89 90 // for DPRINTF compatibility 91 const std::string name() const { return _name; } 92 93 Addr pageAlign(Addr a) { return (a & ~offsetMask); } 94 Addr pageOffset(Addr a) { return (a & offsetMask); } 95 |
96 virtual void map(Addr vaddr, Addr paddr, int64_t size, bool clobber = false) = 0; | 96 virtual void map(Addr vaddr, Addr paddr, int64_t size, 97 bool clobber = false) = 0; |
97 virtual void remap(Addr vaddr, int64_t size, Addr new_vaddr) = 0; 98 virtual void unmap(Addr vaddr, int64_t size) = 0; 99 100 /** 101 * Check if any pages in a region are already allocated 102 * @param vaddr The starting virtual address of the region. 103 * @param size The length of the region. 104 * @return True if no pages in the region are mapped. --- 134 unchanged lines hidden --- | 98 virtual void remap(Addr vaddr, int64_t size, Addr new_vaddr) = 0; 99 virtual void unmap(Addr vaddr, int64_t size) = 0; 100 101 /** 102 * Check if any pages in a region are already allocated 103 * @param vaddr The starting virtual address of the region. 104 * @param size The length of the region. 105 * @return True if no pages in the region are mapped. --- 134 unchanged lines hidden --- |