isa.cc (7680:f4eda002333b) 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;

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

28 * Authors: Gabe Black
29 */
30
31#include <cassert>
32
33#include "arch/alpha/isa.hh"
34#include "base/misc.hh"
35#include "cpu/thread_context.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;

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

28 * Authors: Gabe Black
29 */
30
31#include <cassert>
32
33#include "arch/alpha/isa.hh"
34#include "base/misc.hh"
35#include "cpu/thread_context.hh"
36#include "params/AlphaISA.hh"
36#include "sim/serialize.hh"
37
38namespace AlphaISA
39{
40
37#include "sim/serialize.hh"
38
39namespace AlphaISA
40{
41
42ISA::ISA(Params *p)
43 : SimObject(p)
44{
45 clear();
46 initializeIprTable();
47}
48
49const AlphaISAParams *
50ISA::params() const
51{
52 return dynamic_cast<const Params *>(_params);
53}
54
41void
42ISA::serialize(EventManager *em, std::ostream &os)
43{
44 SERIALIZE_SCALAR(fpcr);
45 SERIALIZE_SCALAR(uniq);
46 SERIALIZE_SCALAR(lock_flag);
47 SERIALIZE_SCALAR(lock_addr);
48 SERIALIZE_ARRAY(ipr, NumInternalProcRegs);

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

146 return;
147 default:
148 setIpr(misc_reg, val, tc);
149 return;
150 }
151}
152
153}
55void
56ISA::serialize(EventManager *em, std::ostream &os)
57{
58 SERIALIZE_SCALAR(fpcr);
59 SERIALIZE_SCALAR(uniq);
60 SERIALIZE_SCALAR(lock_flag);
61 SERIALIZE_SCALAR(lock_addr);
62 SERIALIZE_ARRAY(ipr, NumInternalProcRegs);

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

160 return;
161 default:
162 setIpr(misc_reg, val, tc);
163 return;
164 }
165}
166
167}
168
169AlphaISA::ISA *
170AlphaISAParams::create()
171{
172 return new AlphaISA::ISA(this);
173}