Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
compilation fix
  • Loading branch information
sshwarts committed May 16, 2010
1 parent 16e7296 commit 9c4a26d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9c4a26d

Please sign in to comment.