diff options
author | Gabe Black <gabeblack@google.com> | 2017-12-22 16:14:03 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-01-11 06:29:58 +0000 |
commit | 54a9d471faab2b4ab3ef26932957b2e0d496e84e (patch) | |
tree | 2fc64af43a35ca47cb2bc06461ff76f8092e1262 /src/mem | |
parent | c2f3f6dbff9b29730da17269397f918742559179 (diff) | |
download | gem5-54a9d471faab2b4ab3ef26932957b2e0d496e84e.tar.xz |
arch,mem: Move page table construction into the arch classes.
This gets rid of an awkward NoArchPageTable class, and also gives the
arch a place to inject ISA specific parameters (specifically page size)
without having to have TheISA:: in the generic version of these types.
Change-Id: I1412f303460d5c43dafdb9b3cd07af81c908a441
Reviewed-on: https://gem5-review.googlesource.com/6981
Reviewed-by: Alexandru Duțu <alexandru.dutu@amd.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/page_table.hh | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mem/page_table.hh b/src/mem/page_table.hh index 0d0a75ef5..883b47cdc 100644 --- a/src/mem/page_table.hh +++ b/src/mem/page_table.hh @@ -246,19 +246,4 @@ class FuncPageTable : public PageTableBase void getMappings(std::vector<std::pair<Addr, Addr>> *addr_maps) override; }; -/** - * Faux page table class indended to stop the usage of - * an architectural page table, when there is none defined - * for a particular ISA. - */ -class NoArchPageTable : public FuncPageTable -{ - public: - NoArchPageTable(const std::string &__name, uint64_t _pid, System *_sys, - Addr _pageSize = TheISA::PageBytes) : FuncPageTable(__name, _pid) - { - fatal("No architectural page table defined for this ISA.\n"); - } -}; - #endif // __MEM_PAGE_TABLE_HH__ |