isa.cc (9377:6f294e7a93d1) isa.cc (9384:877293183bdf)
1/*
2 * Copyright (c) 2009 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 23 unchanged lines hidden (view full) ---

32#include "arch/sparc/decoder.hh"
33#include "arch/sparc/isa.hh"
34#include "base/bitfield.hh"
35#include "base/trace.hh"
36#include "cpu/base.hh"
37#include "cpu/thread_context.hh"
38#include "debug/MiscRegs.hh"
39#include "debug/Timer.hh"
1/*
2 * Copyright (c) 2009 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 23 unchanged lines hidden (view full) ---

32#include "arch/sparc/decoder.hh"
33#include "arch/sparc/isa.hh"
34#include "base/bitfield.hh"
35#include "base/trace.hh"
36#include "cpu/base.hh"
37#include "cpu/thread_context.hh"
38#include "debug/MiscRegs.hh"
39#include "debug/Timer.hh"
40#include "params/SparcISA.hh"
40
41namespace SparcISA
42{
43
44static PSTATE
45buildPstateMask()
46{
47 PSTATE mask = 0;

--- 5 unchanged lines hidden (view full) ---

53 mask.tle = 1;
54 mask.cle = 1;
55 mask.pid1 = 1;
56 return mask;
57}
58
59static const PSTATE PstateMask = buildPstateMask();
60
41
42namespace SparcISA
43{
44
45static PSTATE
46buildPstateMask()
47{
48 PSTATE mask = 0;

--- 5 unchanged lines hidden (view full) ---

54 mask.tle = 1;
55 mask.cle = 1;
56 mask.pid1 = 1;
57 return mask;
58}
59
60static const PSTATE PstateMask = buildPstateMask();
61
62ISA::ISA(Params *p)
63 : SimObject(p)
64{
65 tickCompare = NULL;
66 sTickCompare = NULL;
67 hSTickCompare = NULL;
68
69 clear();
70}
71
72const SparcISAParams *
73ISA::params() const
74{
75 return dynamic_cast<const Params *>(_params);
76}
77
61void
62ISA::reloadRegMap()
63{
64 installGlobals(gl, CurrentGlobalsOffset);
65 installWindow(cwp, CurrentWindowOffset);
66 // Microcode registers.
67 for (int i = 0; i < NumMicroIntRegs; i++)
68 intRegMap[MicroIntOffset + i] = i + TotalGlobals + NWindows * 16;

--- 706 unchanged lines hidden (view full) ---

775 em->schedule(hSTickCompare, hstick_cmp);
776 }
777 }
778 }
779
780}
781
782}
78void
79ISA::reloadRegMap()
80{
81 installGlobals(gl, CurrentGlobalsOffset);
82 installWindow(cwp, CurrentWindowOffset);
83 // Microcode registers.
84 for (int i = 0; i < NumMicroIntRegs; i++)
85 intRegMap[MicroIntOffset + i] = i + TotalGlobals + NWindows * 16;

--- 706 unchanged lines hidden (view full) ---

792 em->schedule(hSTickCompare, hstick_cmp);
793 }
794 }
795 }
796
797}
798
799}
800
801SparcISA::ISA *
802SparcISAParams::create()
803{
804 return new SparcISA::ISA(this);
805}