Deleted Added
sdiff udiff text old ( 7680:f4eda002333b ) new ( 9384:877293183bdf )
full compact
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"
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
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}