misc.isa (12259:f787f664d57a) misc.isa (12261:88f4f45ec80c)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010-2013,2017 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

--- 1076 unchanged lines hidden (view full) ---

1085 Hdcr, Hstr, Hcptr, imm)) {
1086 return std::make_shared<HypervisorTrap>(machInst, imm,
1087 EC_TRAPPED_CP15_MCR_MRC);
1088 }
1089 '''
1090 dsbIop = InstObjParams("dsb", "Dsb", "ImmOp",
1091 {"code": dsbCode,
1092 "predicate_test": predicateTest},
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010-2013,2017 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

--- 1076 unchanged lines hidden (view full) ---

1085 Hdcr, Hstr, Hcptr, imm)) {
1086 return std::make_shared<HypervisorTrap>(machInst, imm,
1087 EC_TRAPPED_CP15_MCR_MRC);
1088 }
1089 '''
1090 dsbIop = InstObjParams("dsb", "Dsb", "ImmOp",
1091 {"code": dsbCode,
1092 "predicate_test": predicateTest},
1093 ['IsMemBarrier', 'IsSerializeAfter',
1094 'IsSquashAfter'])
1093 ['IsMemBarrier', 'IsSerializeAfter'])
1095 header_output += ImmOpDeclare.subst(dsbIop)
1096 decoder_output += ImmOpConstructor.subst(dsbIop)
1097 exec_output += PredOpExecute.subst(dsbIop)
1098
1099 dmbCode = '''
1100 // If the barrier is due to a CP15 access check for hyp traps
1101 if ((imm != 0) && mcrMrc15TrapToHyp(MISCREG_CP15DMB, Hcr, Cpsr, Scr,
1102 Hdcr, Hstr, Hcptr, imm)) {

--- 54 unchanged lines hidden ---
1094 header_output += ImmOpDeclare.subst(dsbIop)
1095 decoder_output += ImmOpConstructor.subst(dsbIop)
1096 exec_output += PredOpExecute.subst(dsbIop)
1097
1098 dmbCode = '''
1099 // If the barrier is due to a CP15 access check for hyp traps
1100 if ((imm != 0) && mcrMrc15TrapToHyp(MISCREG_CP15DMB, Hcr, Cpsr, Scr,
1101 Hdcr, Hstr, Hcptr, imm)) {

--- 54 unchanged lines hidden ---