summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-12-15 00:47:01 -0800
committerGabe Black <gblack@eecs.umich.edu>2008-12-15 00:47:01 -0800
commitf0d1a209716215e86a2a8f147dc1be5f6e077840 (patch)
treee9d9f661e8be8ede386ee902eb68350a3aca5561 /src
parent13f7fdcf67f9ed893a575e78ef170b42eda58ef4 (diff)
downloadgem5-f0d1a209716215e86a2a8f147dc1be5f6e077840.tar.xz
PCI: Add some missing breaks to a couple case statements.
Diffstat (limited to 'src')
-rw-r--r--src/dev/pcidev.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dev/pcidev.cc b/src/dev/pcidev.cc
index e1dd7e553..56b8cd3c8 100644
--- a/src/dev/pcidev.cc
+++ b/src/dev/pcidev.cc
@@ -216,8 +216,10 @@ PciDev::writeConfig(PacketPtr pkt)
switch (offset) {
case PCI0_INTERRUPT_LINE:
config.interruptLine = pkt->get<uint8_t>();
+ break;
case PCI_CACHE_LINE_SIZE:
config.cacheLineSize = pkt->get<uint8_t>();
+ break;
case PCI_LATENCY_TIMER:
config.latencyTimer = pkt->get<uint8_t>();
break;
@@ -240,8 +242,10 @@ PciDev::writeConfig(PacketPtr pkt)
switch (offset) {
case PCI_COMMAND:
config.command = pkt->get<uint8_t>();
+ break;
case PCI_STATUS:
config.status = pkt->get<uint8_t>();
+ break;
case PCI_CACHE_LINE_SIZE:
config.cacheLineSize = pkt->get<uint8_t>();
break;