arch-arm: Corrected encoding for T32 HVC instruction
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 1 Nov 2017 15:33:06 +0000 (15:33 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 13 Nov 2017 09:24:57 +0000 (09:24 +0000)
This patch corrects the encoding of the HVC (Hypervisor Call) for the
T32 instruction set.

Change-Id: I6f77eaf5c586697e9ccd588419c61e6d90c6c7bf
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Chuan Zhu <chuan.zhu@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/5541
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/arch/arm/isa/formats/branch.isa

index 513506d31741f5fb486e52149efb3d11f8fa55bc..df85b08a74bafd788d9c43a71627d2ab16e01252 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode:c++ -*-
 
-// Copyright (c) 2010, 2012-2013 ARM Limited
+// Copyright (c) 2010,2012-2013,2017 ARM Limited
 // All rights reserved
 //
 // The license below extends only to copyright in the software and shall
@@ -247,7 +247,7 @@ def format Thumb32BranchesAndMiscCtrl() {{
                             }
                         }
                     }
-                  case 0xfe:
+                  case 0x7e:
                     {
                         uint32_t imm16 = (bits(machInst, 19, 16) << 12) |
                                          (bits(machInst, 11,  0) <<  0);