alpha: fix for no 'break' in the case statement
authorSujay Phadke <electronicsguy123@gmail.com>
Tue, 23 Jan 2018 17:54:12 +0000 (23:24 +0530)
committerGabe Black <gabeblack@google.com>
Thu, 1 Feb 2018 04:43:48 +0000 (04:43 +0000)
gem5 won't compile correctly since g++ will throw a warning (error)
that the next case statement below this one is reachable since there is
no 'break' statement.

Signed-off-by: Sujay Phadke
Change-Id: Icab646ee5abcfeb6ba3e690909042927b4003eba
Reviewed-on: https://gem5-review.googlesource.com/7521
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>

src/arch/alpha/ev5.cc

index 4d72104b15f8e52eb03fd4fa26bd147a618c486b..ae8efa4e6e1899dd301713cd46d0efa6ac5acf62 100644 (file)
@@ -303,6 +303,7 @@ ISA::setIpr(int idx, uint64_t val, ThreadContext *tc)
             if (tc->getKernelStats())
                 tc->getKernelStats()->mode(Kernel::kernel, tc);
         }
+        M5_FALLTHROUGH;
 
       case IPR_ICM:
         // only write two mode bits - processor mode