static_inst.hh (12498:309fbaf29a40) | static_inst.hh (12614:0bc465e1f5fb) |
---|---|
1/* 2 * Copyright (c) 2010-2013,2016-2018 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 --- 491 unchanged lines hidden (view full) --- 500 * contains some instruction metadata, which means it differs 501 * from the real opcode. 502 */ 503 MachInst 504 encoding() const 505 { 506 return static_cast<MachInst>(machInst & (mask(instSize() * 8))); 507 } | 1/* 2 * Copyright (c) 2010-2013,2016-2018 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 --- 491 unchanged lines hidden (view full) --- 500 * contains some instruction metadata, which means it differs 501 * from the real opcode. 502 */ 503 MachInst 504 encoding() const 505 { 506 return static_cast<MachInst>(machInst & (mask(instSize() * 8))); 507 } |
508 509 size_t 510 asBytes(void *buf, size_t max_size) override 511 { 512 return simpleAsBytes(buf, max_size, machInst); 513 } |
|
508}; 509} 510 511#endif //__ARCH_ARM_INSTS_STATICINST_HH__ | 514}; 515} 516 517#endif //__ARCH_ARM_INSTS_STATICINST_HH__ |