PCI: Add some missing breaks to a couple case statements.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 15 Dec 2008 08:47:01 +0000 (00:47 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 15 Dec 2008 08:47:01 +0000 (00:47 -0800)
src/dev/pcidev.cc

index e1dd7e553277369703328404c882954f3208b30b..56b8cd3c84f2243e1af3d37626e2a2b9673acc63 100644 (file)
@@ -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;