B.7.11. CADIProfileHazardDescription_t

Objects of this type provide information about the hazard.

Example B.53. CADIProfileHazardDescription_t

class CADIProfileHazardDescription_t
{
public: // methods
        CADIProfileHazardDescription_t(
                  CADIProfileHazardTypes_t type_par =
                       CADI_PROF_HAZARD_RESOURCE_MAX_ACCESS,
                  uint32_t numberOfAccesses_par = 0, 
                  uint32_t originInstructionFID_par = 0,
                  uint32_t affectedInstructionFID_par = 0, 
                  const char *resource_par = "",
                  const char *messages_par = "") :
            type(type_par),
            numberOfAccesses(numberOfAccesses_par),
            originInstructionFID(originInstructionFID_par),
            affectedInstructionFID(affectedInstructionFID_par)
        {
            AssignString(resource, resource_par, sizeof(resource));
            AssignString(message, messages_par, sizeof(message));
        }
public: // data
        CADIProfileHazardTypes_t type;
        uint32_t    numberOfAccesses; 
        uint32_t    originInstructionFID;  
        uint32_t    affectedInstructionFID; 
        char        resource[CADI_DESCRIPTION_SIZE];
        char        message[CADI_DESCRIPTION_SIZE]; 
};

The data members are:

type

is the number of accesses to affected resource

numberOfAccesses

is the FID of the originator resource/instruction

affectedInstructionFID

is the name of the affected resource/instruction

resource

is the resource

message

is the hazard message.

Copyright © 2008-2010 ARM Limited. All rights reserved.ARM DUI 0444F
Non-ConfidentialID110210