diff --git a/bochs/cpu/paging.cc b/bochs/cpu/paging.cc index 60cc51c64..1fd09f522 100644 --- a/bochs/cpu/paging.cc +++ b/bochs/cpu/paging.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: paging.cc,v 1.223 2010-05-05 20:10:15 sshwarts Exp $ +// $Id: paging.cc,v 1.224 2010-05-16 05:23:18 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001-2010 The Bochs Project @@ -525,6 +525,8 @@ void BX_CPU_C::page_fault(unsigned fault, bx_address laddr, unsigned user, unsig #define BX_LEVEL_PDE 1 #define BX_LEVEL_PTE 0 +static const char *bx_paging_level[4] = { "PTE", "PDE", "PDPE", "PML4" }; + #if BX_CPU_LEVEL >= 6 int BX_CPU_C::check_entry_PAE(const char *s, Bit64u entry, Bit64u reserved, unsigned rw, bx_bool *nx_fault) @@ -645,8 +647,6 @@ int BX_CPU_C::check_entry_PAE(const char *s, Bit64u entry, Bit64u reserved, unsi // 63 | Execute-Disable (XD) (if EFER.NXE=1, reserved otherwise) // ----------------------------------------------------------- -static const char *bx_paging_level[4] = { "PTE", "PDE", "PDPE", "PML4" }; - #if BX_SUPPORT_X86_64 // Translate a linear address to a physical address in long mode