speaker.cc (11793:ef606668d247) speaker.cc (12450:b5a0300fc327)
1/*
2 * Copyright (c) 2008 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;

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

72 controlVal.gate ? "on" : "off", controlVal.speaker ? "on" : "off");
73 pkt->makeAtomicResponse();
74 return latency;
75}
76
77void
78X86ISA::Speaker::serialize(CheckpointOut &cp) const
79{
1/*
2 * Copyright (c) 2008 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;

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

72 controlVal.gate ? "on" : "off", controlVal.speaker ? "on" : "off");
73 pkt->makeAtomicResponse();
74 return latency;
75}
76
77void
78X86ISA::Speaker::serialize(CheckpointOut &cp) const
79{
80 uint8_t controlValData = controlVal.__data;
81 SERIALIZE_SCALAR(controlValData);
80 SERIALIZE_SCALAR(controlVal);
82}
83
84void
85X86ISA::Speaker::unserialize(CheckpointIn &cp)
86{
81}
82
83void
84X86ISA::Speaker::unserialize(CheckpointIn &cp)
85{
87 uint8_t controlValData;
88 UNSERIALIZE_SCALAR(controlValData);
89 controlVal.__data = controlValData;
86 UNSERIALIZE_SCALAR(controlVal);
90}
91
92X86ISA::Speaker *
93PcSpeakerParams::create()
94{
95 return new X86ISA::Speaker(this);
96}
87}
88
89X86ISA::Speaker *
90PcSpeakerParams::create()
91{
92 return new X86ISA::Speaker(this);
93}