From: Gabe Black Date: Wed, 2 Jun 2010 17:58:17 +0000 (-0500) Subject: ARM: Treat LDRD in ARM with an odd index as an undefined instruction. X-Git-Tag: stable_2012_02_02~1076 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e556e9dfbd9a3b3f06a023d4edf3b3678fd0a40;p=gem5.git ARM: Treat LDRD in ARM with an odd index as an undefined instruction. --- diff --git a/src/arch/arm/isa/formats/mem.isa b/src/arch/arm/isa/formats/mem.isa index aa8bbf55e..59a6f126a 100644 --- a/src/arch/arm/isa/formats/mem.isa +++ b/src/arch/arm/isa/formats/mem.isa @@ -122,8 +122,10 @@ def format AddrMode3() {{ case 0x2: if (op1 & 0x1) { %(ldrsb)s - } else { + } else if ((RT %% 2) == 0) { %(ldrd)s + } else { + return new Unknown(machInst); } case 0x3: if (op1 & 0x1) {