misc.isa (12542:03cb745f9982) misc.isa (12560:9df712bd8c2f)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010-2013,2017-2018 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

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

862 MiscRegIndex miscReg = (MiscRegIndex) xc->tcBase()->flattenRegId(
863 RegId(MiscRegClass, op1)).index();
864 bool can_read, undefined;
865 std::tie(can_read, undefined) = canReadCoprocReg(miscReg, Scr, Cpsr);
866 if (!can_read || undefined) {
867 return std::make_shared<UndefinedInstruction>(machInst, false,
868 mnemonic);
869 }
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010-2013,2017-2018 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

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

862 MiscRegIndex miscReg = (MiscRegIndex) xc->tcBase()->flattenRegId(
863 RegId(MiscRegClass, op1)).index();
864 bool can_read, undefined;
865 std::tie(can_read, undefined) = canReadCoprocReg(miscReg, Scr, Cpsr);
866 if (!can_read || undefined) {
867 return std::make_shared<UndefinedInstruction>(machInst, false,
868 mnemonic);
869 }
870 if (mcrMrc14TrapToHyp((const MiscRegIndex) op1, Hcr, Cpsr, Scr, Hdcr,
870 if (mcrMrc14TrapToHyp((MiscRegIndex) op1, Hcr, Cpsr, Scr, Hdcr,
871 Hstr, Hcptr, imm)) {
872 return std::make_shared<HypervisorTrap>(machInst, imm,
873 EC_TRAPPED_CP14_MCR_MRC);
874 }
875 Dest = MiscOp1;
876 '''
877
878 mrc14Iop = InstObjParams("mrc", "Mrc14", "RegRegImmOp",

--- 394 unchanged lines hidden ---
871 Hstr, Hcptr, imm)) {
872 return std::make_shared<HypervisorTrap>(machInst, imm,
873 EC_TRAPPED_CP14_MCR_MRC);
874 }
875 Dest = MiscOp1;
876 '''
877
878 mrc14Iop = InstObjParams("mrc", "Mrc14", "RegRegImmOp",

--- 394 unchanged lines hidden ---