ARM: Decode the nop instruction.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:07 +0000 (12:58 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:07 +0000 (12:58 -0500)
src/arch/arm/isa/formats/branch.isa
src/arch/arm/isa/formats/data.isa
src/arch/arm/isa/formats/uncond.isa

index 865a73b325cb4fff7acfec39d97a5de870a4f4f4..999126081eef40fd507c09c605d429e9dadb7cdd 100644 (file)
@@ -157,7 +157,7 @@ def format Thumb32BranchesAndMiscCtrl() {{
                         } else {
                             switch (op2) {
                               case 0x0:
-                                return new WarnUnimplemented("nop", machInst);
+                                return new NopInst(machInst);
                               case 0x1:
                                 return new WarnUnimplemented("yield", machInst);
                               case 0x2:
index 7679aa355dfca3509b93ec95b3181f19b5148340..51cb4fd03454d88da4e6c76d431bedb36d642881 100644 (file)
@@ -1043,7 +1043,7 @@ def format Thumb16Misc() {{
                 return new WarnUnimplemented("it", machInst);
             switch (bits(machInst, 7, 4)) {
               case 0x0:
-                return new WarnUnimplemented("nop", machInst);
+                return new NopInst(machInst);
               case 0x1:
                 return new WarnUnimplemented("yield", machInst);
               case 0x2:
index 1b3c323aaf2508817e931103c407feac54fa982b..cd041f21b3eb290f28ae3b0a6594cbefb6853cca 100644 (file)
@@ -58,7 +58,7 @@ def format ArmUnconditional() {{
                             machInst);
                 } else if (bits(op1, 2, 0) == 1) {
                     // Unallocated memory hint
-                    return new WarnUnimplemented("nop", machInst);
+                    return new NopInst(machInst);
                 } else if (bits(op1, 2, 0) == 5) {
                     const bool add = bits(machInst, 23);
                     const uint32_t imm12 = bits(machInst, 11, 0);
@@ -108,7 +108,7 @@ def format ArmUnconditional() {{
                 switch (op1 & 0xf7) {
                   case 0x61:
                     // Unallocated memory hint
-                    return new WarnUnimplemented("nop", machInst);
+                    return new NopInst(machInst);
                   case 0x65:
                     {
                         const uint32_t imm5 = bits(machInst, 11, 7);