static_inst.hh (12399:4b26fa70dfa7) static_inst.hh (12401:692ba6d84f4b)
1/*
2 * Copyright (c) 2010-2013,2016-2017 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

435 * Returns the real encoding of the instruction:
436 * the machInst field is in fact always 64 bit wide and
437 * contains some instruction metadata, which means it differs
438 * from the real opcode.
439 */
440 MachInst
441 encoding() const
442 {
1/*
2 * Copyright (c) 2010-2013,2016-2017 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

435 * Returns the real encoding of the instruction:
436 * the machInst field is in fact always 64 bit wide and
437 * contains some instruction metadata, which means it differs
438 * from the real opcode.
439 */
440 MachInst
441 encoding() const
442 {
443 return static_cast<MachInst>(mask(instSize() * 8));
443 return static_cast<MachInst>(machInst & (mask(instSize() * 8)));
444 }
445};
446}
447
448#endif //__ARCH_ARM_INSTS_STATICINST_HH__
444 }
445};
446}
447
448#endif //__ARCH_ARM_INSTS_STATICINST_HH__