From: Ryan Gambord Date: Mon, 11 Mar 2019 11:04:30 +0000 (-0700) Subject: arch-arm: Fixing implicit fallthrough build errors X-Git-Tag: v19.0.0.0~1066 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d67e86a1b5241117a4e311de7bcf58512b90aa0;p=gem5.git 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 --- 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){