From 54a9d471faab2b4ab3ef26932957b2e0d496e84e Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 22 Dec 2017 16:14:03 -0800 Subject: arch,mem: Move page table construction into the arch classes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Maintainer: Gabe Black --- src/mem/page_table.hh | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/mem') 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> *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__ -- cgit v1.2.3