From 36c03001bb325a6a180bbd014036966171f354a4 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 29 Nov 2006 17:59:42 -0500 Subject: [PATCH] Fixes to get compilation. --HG-- extra : convert_revision : cd6b496c4e4b32ce2a639eb9a2b6fbd62dfff2d1 --- src/arch/sparc/isa_traits.hh | 3 +++ src/arch/sparc/miscregfile.hh | 2 +- src/arch/sparc/pagetable.hh | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/arch/sparc/isa_traits.hh b/src/arch/sparc/isa_traits.hh index 2bd7ccf3b..3f0b9cad5 100644 --- a/src/arch/sparc/isa_traits.hh +++ b/src/arch/sparc/isa_traits.hh @@ -35,6 +35,7 @@ #include "arch/sparc/types.hh" #include "arch/sparc/sparc_traits.hh" #include "config/full_system.hh" +#include "sim/host.hh" class StaticInstPtr; @@ -44,6 +45,8 @@ namespace SparcISA { class RegFile; + const int MachineBytes = 8; + //This makes sure the big endian versions of certain functions are used. using namespace BigEndianGuest; diff --git a/src/arch/sparc/miscregfile.hh b/src/arch/sparc/miscregfile.hh index 90d7229e0..e7779d333 100644 --- a/src/arch/sparc/miscregfile.hh +++ b/src/arch/sparc/miscregfile.hh @@ -125,7 +125,7 @@ namespace SparcISA MISCREG_SCRATCHPAD_R4, MISCREG_SCRATCHPAD_R5, MISCREG_SCRATCHPAD_R6, - MISCREG_SCRATCHPAD_R7 + MISCREG_SCRATCHPAD_R7, MISCREG_NUMMISCREGS }; diff --git a/src/arch/sparc/pagetable.hh b/src/arch/sparc/pagetable.hh index 21dbad0a3..2e27258a4 100644 --- a/src/arch/sparc/pagetable.hh +++ b/src/arch/sparc/pagetable.hh @@ -32,8 +32,11 @@ #define __ARCH_SPARC_PAGETABLE_HH__ #include "arch/sparc/isa_traits.hh" +#include "base/misc.hh" #include "config/full_system.hh" +class Checkpoint; + namespace SparcISA { struct VAddr -- 2.30.2