From 6d67e86a1b5241117a4e311de7bcf58512b90aa0 Mon Sep 17 00:00:00 2001 From: Ryan Gambord Date: Mon, 11 Mar 2019 04:04:30 -0700 Subject: [PATCH] arch-arm: Fixing implicit fallthrough build errors 2c242d6 introduced implicit-fallthrough errors when building against ARM. Added "default: return new Unknown(machInst);" to offending switch statements; please verify this is the corret behavior Signed-off-by: Ryan Gambord Change-Id: I5f5e3661ec562d4a3b2699e07d1195e6877ff959 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17071 Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini --- src/arch/arm/isa/formats/fp.isa | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/arch/arm/isa/formats/fp.isa b/src/arch/arm/isa/formats/fp.isa index c159dc626..cb806f65d 100644 --- a/src/arch/arm/isa/formats/fp.isa +++ b/src/arch/arm/isa/formats/fp.isa @@ -2101,6 +2101,7 @@ let {{ } else { return new VcvtaFpUIntD(machInst, vdInt, vm); } + default: return new Unknown(machInst); } case 0x1: switch(size) { @@ -2121,6 +2122,7 @@ let {{ } else { return new VcvtnFpUIntD(machInst, vdInt, vm); } + default: return new Unknown(machInst); } case 0x2: switch(size) { @@ -2141,6 +2143,7 @@ let {{ } else { return new VcvtpFpUIntD(machInst, vdInt, vm); } + default: return new Unknown(machInst); } case 0x3: switch(size) { @@ -2161,7 +2164,9 @@ let {{ } else { return new VcvtmFpUIntD(machInst, vdInt, vm); } + default: return new Unknown(machInst); } + default: return new Unknown(machInst); } } } else if (b31_b24 && !b23 && b11_b9 && !op3 && b4){ -- 2.30.2