1c120c564SAndrew Turner /* 2c120c564SAndrew Turner * \file trc_i_decode.h 3c120c564SAndrew Turner * \brief OpenCSD : 4c120c564SAndrew Turner * 5c120c564SAndrew Turner * \copyright Copyright (c) 2015, ARM Limited. All Rights Reserved. 6c120c564SAndrew Turner */ 7c120c564SAndrew Turner 8c120c564SAndrew Turner /* 9c120c564SAndrew Turner * Redistribution and use in source and binary forms, with or without modification, 10c120c564SAndrew Turner * are permitted provided that the following conditions are met: 11c120c564SAndrew Turner * 12c120c564SAndrew Turner * 1. Redistributions of source code must retain the above copyright notice, 13c120c564SAndrew Turner * this list of conditions and the following disclaimer. 14c120c564SAndrew Turner * 15c120c564SAndrew Turner * 2. Redistributions in binary form must reproduce the above copyright notice, 16c120c564SAndrew Turner * this list of conditions and the following disclaimer in the documentation 17c120c564SAndrew Turner * and/or other materials provided with the distribution. 18c120c564SAndrew Turner * 19c120c564SAndrew Turner * 3. Neither the name of the copyright holder nor the names of its contributors 20c120c564SAndrew Turner * may be used to endorse or promote products derived from this software without 21c120c564SAndrew Turner * specific prior written permission. 22c120c564SAndrew Turner * 23c120c564SAndrew Turner * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND 24c120c564SAndrew Turner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 25c120c564SAndrew Turner * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 26c120c564SAndrew Turner * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 27c120c564SAndrew Turner * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28c120c564SAndrew Turner * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29c120c564SAndrew Turner * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 30c120c564SAndrew Turner * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31c120c564SAndrew Turner * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32c120c564SAndrew Turner * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33c120c564SAndrew Turner */ 34c120c564SAndrew Turner #ifndef ARM_TRC_I_DECODE_H_INCLUDED 35c120c564SAndrew Turner #define ARM_TRC_I_DECODE_H_INCLUDED 36c120c564SAndrew Turner 37c120c564SAndrew Turner #include "interfaces/trc_instr_decode_i.h" 38c120c564SAndrew Turner #include "opencsd/ocsd_if_types.h" 39c120c564SAndrew Turner 40c120c564SAndrew Turner class TrcIDecode : public IInstrDecode 41c120c564SAndrew Turner { 42c120c564SAndrew Turner public: TrcIDecode()43c120c564SAndrew Turner TrcIDecode() {}; ~TrcIDecode()44c120c564SAndrew Turner virtual ~TrcIDecode() {}; 45c120c564SAndrew Turner 46c120c564SAndrew Turner virtual ocsd_err_t DecodeInstruction(ocsd_instr_info *instr_info); 47c120c564SAndrew Turner 48c120c564SAndrew Turner private: 49*b6aadd18SAndrew Turner ocsd_err_t DecodeA32(ocsd_instr_info *instr_info, struct decode_info *info); 50*b6aadd18SAndrew Turner ocsd_err_t DecodeA64(ocsd_instr_info *instr_info, struct decode_info *info); 51*b6aadd18SAndrew Turner ocsd_err_t DecodeT32(ocsd_instr_info *instr_info, struct decode_info *info); 52c120c564SAndrew Turner }; 53c120c564SAndrew Turner 54c120c564SAndrew Turner #endif // ARM_TRC_I_DECODE_H_INCLUDED 55c120c564SAndrew Turner 56c120c564SAndrew Turner /* End of File trc_i_decode.h */ 57