compilation fix

This commit is contained in:
Stanislav Shwartsman 2010-05-16 05:23:18 +00:00
parent bdc7b4bf89
commit 05bbbb1a2c

View File

@ -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