36 #ifndef ARM_TRC_PKT_PROC_PTM_H_INCLUDED 37 #define ARM_TRC_PKT_PROC_PTM_H_INCLUDED 61 virtual ocsd_datapath_resp_t
processData(
const ocsd_trc_index_t index,
62 const uint32_t dataBlockSize,
63 const uint8_t *pDataBlock,
64 uint32_t *numBytesProcessed);
65 virtual ocsd_datapath_resp_t
onEOT();
66 virtual ocsd_datapath_resp_t
onReset();
67 virtual ocsd_datapath_resp_t
onFlush();
90 const bool readByte(uint8_t &currByte);
103 const bool isSync()
const;
139 #define ASYNC_PAD_0_LIMIT 11 141 #define ASYNC_REQ_0 5 146 int extractTS(uint64_t &tsVal, uint8_t &tsUpdateBits);
213 #endif // ARM_TRC_PKT_PROC_PTM_H_INCLUDED PtmTrcPacket m_curr_packet
std::vector< uint8_t > m_currPacketData
virtual ocsd_datapath_resp_t onFlush()
Implementation function for the OCSD_OP_FLUSH operation.
bool m_gotAddrBytes
got all Addr bytes in branch packet
struct TrcPktProcPtm::_pkt_i_table_t m_i_table[256]
virtual ocsd_datapath_resp_t onReset()
Implementation function for the OCSD_OP_RESET operation.
long pattern of 0x00 - throw some away.
enum TrcPktProcPtm::_process_state process_state
void InitProcessorState()
int extractTS(uint64_t &tsVal, uint8_t &tsUpdateBits)
bool m_gotTSBytes
got all TS bytes
enum TrcPktProcPtm::_async_result async_result_t
int m_excepAltISA
Alt ISA bit iff exception bytes.
ocsd_isa m_addrPktIsa
ISA of the branch address packet.
pattern confirmed async 0x00 x 5, 0x80
ocsd_trc_index_t m_curr_pkt_index
uint32_t m_dataInProcessed
void throwMalformedPacketErr(const char *pszErrMsg)
pattern confirmed 0x00 x N + ASYNC
ocsd_datapath_resp_t outputPacket()
void throwPacketHeaderErr(const char *pszErrMsg)
process_state m_process_state
virtual ocsd_datapath_resp_t onEOT()
Implementation function for the OCSD_OP_EOT operation.
Packet Processor base class. Provides common infrastructure and interconnections for packet processor...
Interpreter class for PTM Hardware configuration.
ocsd_trc_index_t m_block_idx
bool m_bOPNotSyncPkt
true if output not sync packet when waiting for ASYNC
async_result_t findAsync()
void SetErrType(const ocsd_ptm_pkt_type e_type)
uint32_t extractAddress(const int offset, uint8_t &total_bits)
ocsd_ptm_pkt_type pkt_type
ocsd_datapath_resp_t waitASync()
look for first synchronisation point in the packet stream
invalid sequence for packet type
const uint8_t * m_pDataIn
const bool isSync() const
int m_tsByteMax
max size for TS portion of TS packet.
int m_numExcepBytes
got 1st exception byte
pattern confirmed not async
void extractCtxtID(int idx, uint32_t &ctxtID)
bool m_gotExcepBytes
got all needed exception bytes
virtual const bool isBadPacket() const
check if the current packet is an error / bad packet
const ocsd_ptm_pkt_type getType() const
virtual ocsd_err_t onProtocolConfig()
Called when the configuration object is passed to the decoder.
enum _ocsd_ptm_pkt_type ocsd_ptm_pkt_type
void(TrcPktProcPtm::* PPKTFN)(void)
OpenCSD : Trace packet processor base class.
int m_numAddrBytes
number of address bytes
void extractCycleCount(int idx, uint32_t &cycleCount)
virtual ocsd_datapath_resp_t processData(const ocsd_trc_index_t index, const uint32_t dataBlockSize, const uint8_t *pDataBlock, uint32_t *numBytesProcessed)
Implementation function for the OCSD_OP_DATA operation.