summaryrefslogtreecommitdiff
path: root/src/dev/x86/speaker.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-01-06 05:30:46 -0800
committerGabe Black <gabeblack@google.com>2018-01-20 07:29:24 +0000
commitcd9450c1d95d9494e2714ec84620c548b0eebbb1 (patch)
tree1f9ec93031ec2a79ef8dbcefa57b7e44104deed9 /src/dev/x86/speaker.cc
parentecec88750729b2c94d5ca9dedbf7a755c46c41a7 (diff)
downloadgem5-cd9450c1d95d9494e2714ec84620c548b0eebbb1.tar.xz
base: Rework bitunions so they can be more flexible.
They are now oriented around a class which makes it easy to provide custom setter/getter functions which let you set or read bits in an arbitrary way. Future additions may add the ability to add custom bitfield methods, and index-able bitfields. Change-Id: Ibd6d4d9e49107490f6dad30a4379a8c93bda9333 Reviewed-on: https://gem5-review.googlesource.com/7201 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/dev/x86/speaker.cc')
-rw-r--r--src/dev/x86/speaker.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/dev/x86/speaker.cc b/src/dev/x86/speaker.cc
index 61a296719..4d39903e2 100644
--- a/src/dev/x86/speaker.cc
+++ b/src/dev/x86/speaker.cc
@@ -77,16 +77,13 @@ X86ISA::Speaker::write(PacketPtr pkt)
void
X86ISA::Speaker::serialize(CheckpointOut &cp) const
{
- uint8_t controlValData = controlVal.__data;
- SERIALIZE_SCALAR(controlValData);
+ SERIALIZE_SCALAR(controlVal);
}
void
X86ISA::Speaker::unserialize(CheckpointIn &cp)
{
- uint8_t controlValData;
- UNSERIALIZE_SCALAR(controlValData);
- controlVal.__data = controlValData;
+ UNSERIALIZE_SCALAR(controlVal);
}
X86ISA::Speaker *