28a29
> * Ali Saidi
35c36
< #include "arch/sparc/sparc_traits.hh"
---
> #include "base/misc.hh"
36a38
> #include "sim/host.hh"
37a40,45
> class ThreadContext;
> class FastCPU;
> //class FullCPU;
> class Checkpoint;
>
> class StaticInst;
42,45d49
< #if FULL_SYSTEM
< #include "arch/sparc/isa_fullsys_traits.hh"
< #endif
<
58a63,70
> const int NumRegularIntRegs = 32;
> const int NumMicroIntRegs = 1;
> const int NumIntRegs =
> NumRegularIntRegs +
> NumMicroIntRegs;
> const int NumFloatRegs = 64;
> const int NumMiscRegs = 40;
>
61,62c73,76
< FP_Base_DepTag = 32*3+8,
< Ctrl_Base_DepTag = FP_Base_DepTag + 64,
---
> // 0..31 are the integer regs 0..31
> // 32..95 are the FP regs 0..31, i.e. use (reg + FP_Base_DepTag)
> FP_Base_DepTag = NumIntRegs,
> Ctrl_Base_DepTag = NumIntRegs + NumMicroIntRegs + NumFloatRegs,
64a79,88
>
> // MAXTL - maximum trap level
> const int MaxPTL = 2;
> const int MaxTL = 6;
> const int MaxGL = 3;
> const int MaxPGL = 2;
>
> // NWINDOWS - number of register windows, can be 3 to 32
> const int NWindows = 8;
>
92c116
< const int PageBytes = 1ULL << PageShift;
---
> const int PageBytes = ULL(1) << PageShift;
95a120,128
> const int MachineBytes = 8;
> const int WordBytes = 4;
> const int HalfwordBytes = 2;
> const int ByteBytes = 1;
>
> void serialize(std::ostream & os);
>
> void unserialize(Checkpoint *cp, const std::string &section);
>
96a130,156
>
> // return a no-op instruction... used for instruction fetch faults
> extern const MachInst NoopMachInst;
>
> #if FULL_SYSTEM
> ////////// Interrupt Stuff ///////////
> enum InterruptLevels
> {
> INTLEVEL_MIN = 1,
> INTLEVEL_MAX = 15,
>
> NumInterruptLevels = INTLEVEL_MAX - INTLEVEL_MIN
> };
>
> // I don't know what it's for, so I don't
> // know what SPARC's value should be
> // For loading... XXX This maybe could be USegEnd?? --ali
> const Addr LoadAddrMask = ULL(0xffffffffff);
>
> /////////// TLB Stuff ////////////
> const Addr StartVAddrHole = ULL(0x0000800000000000);
> const Addr EndVAddrHole = ULL(0xFFFF7FFFFFFFFFFF);
> const Addr VAddrAMask = ULL(0xFFFFFFFF);
> const Addr PAddrImplMask = ULL(0x000000FFFFFFFFFF);
> const Addr BytesInPageMask = ULL(0x1FFF);
>
> #endif