Lines Matching refs:tag

210 #define	C_AFSR_TUE_SH INT64_C(0x4000000000000000) /* uncorrectable tag UE  */
215 #define C_AFSR_THCE INT64_C(0x0200000000000000) /* h/w correctable E$ tag err */
216 #define C_AFSR_TSCE INT64_C(0x0100000000000000) /* s/w correctable E$ tag err */
217 #define C_AFSR_TUE INT64_C(0x0080000000000000) /* uncorrectable E$ tag error */
268 #define C_AFSR_L3_THCE INT64_C(0x0000000000000400) /* tag CE */
269 #define C_AFSR_L3_TUE_SH INT64_C(0x0000000000000200) /* tag UE from snp/cpy */
270 #define C_AFSR_L3_TUE INT64_C(0x0000000000000100) /* tag UE */
327 #define C_AFSR_ETU INT64_C(0x0001000000000000) /* L2$ tag CE error */
329 #define C_AFSR_ETP INT64_C(0x0001000000000000) /* L2$ tag parity error */
345 #define C_AFSR_ETS INT64_C(0x0000000000100000) /* L2$ tag SRAM stuck-at */
351 #define C_AFSR_ETI INT64_C(0x0000000000008000) /* L2$ tag intermittent */
352 #define C_AFSR_ETC INT64_C(0x0000000000004000) /* L2$ tag CE */
565 * An E$ tag (for an E$ line) contains an EC_tag field, corresponding to the
576 * An E$ tag for a particular E$ line can be read via a diagnostic ASI
578 * Within the E$ tag 64-bit value, the EC_tag field is interpreted as follows:
585 * Within the E$ tag 64-bit value, the EC_state field(s) is(are) interpreted
609 * An E$ tag for a particular E$ line can be read via a diagnostic ASI
611 * Within the E$ tag 64-bit value, the EC_tag field is interpreted as follows:
617 * The Jaguar E$ tag also contains LRU field in bit <42> which must be
618 * masked off when the tag value is being compared to a PA.
620 * Within the E$ tag 64-bit value, the EC_state field(s) is(are) interpreted
643 #define PN_L2_ECC_LO_REG 0x20 /* bit 5 set for L2 tag access */
698 /* Size of Ecache data subblock which has state field in Ecache tag */
724 * Bits to shift EC_tag field of E$ tag to form PA
735 #define PN_L3TAG_PA_MASK 0xfffff000000 /* tag bits[43:24] */
736 #define PN_L2TAG_PA_MASK 0x7fffff80000 /* tag bits[42:19] */
748 * Constants representing the complete Jalapeno Ecache tag state:
782 #define CH_ECTAG_LINE_INVALID(totalsize, tag) \
783 (((tag) & CH_ECTAG_STATE_MASK(totalsize)) == 0)
785 /* Build address mask for tag physical address bits. */
788 /* Get physical address bits from the EC_tag field of an E$ tag */
789 #define CH_ECTAG_TO_PA(setsize, tag) (((tag) << CH_ECTAG_PA_SHIFT) & \
792 /* Given a physical address, compute index for subblock tag state. */
795 /* Given a physical address and assoc. tag, get the subblock state. */
796 #define CH_ECTAG_PA_TO_SUBBLK_STATE(totalsize, pa, tag) \
797 (((tag) >> JP_ECTAG_STATE_SHIFT) & JP_ECSTATE_MASK)
802 * Constants representing the complete Cheetah Ecache tag state:
829 #define CH_ECTAG_LINE_INVALID(totalsize, tag) \
830 (((tag) & CH_ECTAG_STATE_MASK(totalsize)) == 0)
832 /* Build address mask for tag physical address bits. */
835 /* Get physical address bits from the EC_tag field of an E$ tag */
836 #define CH_ECTAG_TO_PA(setsize, tag) (((tag) >> CH_ECTAG_PA_SHIFT) & \
839 /* Given a physical address, compute index for subblock tag state. */
843 /* Given a physical address and assoc. tag, get the subblock state. */
844 #define CH_ECTAG_PA_TO_SUBBLK_STATE(totalsize, pa, tag) \
845 (((tag) >> \
850 /* Panther only has one EC_State field in the L3 tag */
851 #define PN_L3_LINE_INVALID(tag) (((tag) & CH_ECSTATE_MASK) == 0)
853 /* Panther only has one State field in the L2 tag */
854 #define PN_L2_LINE_INVALID(tag) (((tag) & CH_ECSTATE_MASK) == 0)
856 /* Get physical address bits from the EC_tag field of an L3$ tag */
857 #define PN_L3TAG_TO_PA(tag) (((tag) & PN_L3TAG_PA_MASK) >> \
860 /* Get physical address bits from the tag field of an L2$ tag */
861 #define PN_L2TAG_TO_PA(tag) ((tag) & PN_L2TAG_PA_MASK)
887 /* Jaguar E$ tag LRU mask */
904 #define JG_ECTAG_LINE_INVALID(totalsize, tag) \
905 (((tag) & JG_ECTAG_STATE_MASK(totalsize)) == 0)
907 /* Build address mask for tag physical address bits. */
911 /* Get physical address bits from the EC_tag field of an E$ tag */
912 #define JG_ECTAG_TO_PA(setsize, tag) ((tag & JG_ECTAG_PA_MASK(setsize)))
914 /* Given a physical address, compute index for subblock tag state. */
918 /* Given a physical address and assoc. tag, get the subblock state. */
919 #define JG_ECTAG_PA_TO_SUBBLK_STATE(totalsize, pa, tag) \
920 (((tag) >> \
957 #define CH_DCTAG_LINE_INVALID(tag) (((tag) & CH_DCTAG_VALID_BIT) == 0)
959 #define CH_DCTAG_TO_PA(tag) (((tag) << CH_DCTAG_PA_SHIFT) & \
961 #define CH_DCTAG_MATCH(tag, pa) (!CH_DCTAG_LINE_INVALID(tag) && \
962 ((pa) & CH_DCTAG_PA_MASK) == CH_DCTAG_TO_PA(tag))
964 #define CH_DCSNTAG_TO_PA(tag) ((tag << CH_DCTAG_PA_SHIFT) \
966 #define CH_DCUTAG_TO_UTAG(tag) ((tag) & 0xff)
967 #define CH_DCUTAG_TO_VA(tag) ((tag & 0xff) << 14)
977 #define CHP_DCUTAG_TO_UTAG(tag) ((tag) & 0xffff)
978 #define CHP_DCPATAG_TO_PA(tag) ((tag << CH_DCTAG_PA_SHIFT) \
980 #define CHP_DCSNTAG_TO_PA(tag) ((tag << CH_DCTAG_PA_SHIFT) \
983 #define CHP_DCTAG_PARITY(tag) (tag & CHP_DC_TAG)
984 #define CHP_DCSNTAG_PARITY(tag) (tag & CHP_DC_SNTAG)
1036 #define CH_ICPATAG_TO_PA(tag) (((tag) << CH_ICPATAG_SHIFT) & \
1038 #define CH_ICPATAG_MATCH(tag, pa) (CH_ICPATAG_TO_PA(tag) == \
1041 #define CH_ICUTAG_TO_UTAG(tag) (((tag) >> 38) & 0xff)
1042 #define CH_ICUTAG_TO_VA(tag) (((tag) >> 25) & CH_ICUTAG_MASK)
1044 #define CH_ICSNTAG_TO_PA(tag) (((tag) << 5) & CH_ICSNTAG_MASK)
1053 #define PN_ICUTAG_TO_VA(tag) ((tag >> 24) & PN_ICUTAG_MASK)
1057 #define PN_ICUTAG_TO_VA(tag) 0
1070 #define CHP_ICPATAG_TO_PA(tag) ((tag << 5) & CHP_ICPATAG_MASK)
1071 #define CHP_ICSNTAG_TO_PA(tag) ((tag << 5) & CHP_ICSNTAG_MASK)
1072 #define CHP_ICUTAG_TO_VA(tag) ((tag >> 25) & CHP_ICUTAG_MASK)
1086 #define CHP_ICTAG_PARITY(tag) (tag & CHP_IC_TAG)
1087 #define CHP_ICSNTAG_PARITY(tag) (tag & CHP_IC_SNTAG)
1112 #define CH_PCTAG_TO_VA(tag) ((tag) << CH_PCTAG_ADDR_SHIFT)
1113 #define CH_PCSTAG_TO_PA(tag) (((tag) << CH_PCTAG_ADDR_SHIFT) & \
1117 #define CH_PCTAG_BNK0_INVALID(tag) (((tag) & CH_PCTAG_BNK0_VALID_MASK) == \
1119 #define CH_PCTAG_BNK1_INVALID(tag) (((tag) & CH_PCTAG_BNK1_VALID_MASK) == \
1279 * tag parity = XOR(Size[2:0],Global,VA[63:21],Context[12:0])
1280 * which requires looking at both the tag and the data.
1338 uint64_t ic_patag; /* Physical address tag */
1340 uint64_t ic_upper; /* Upper valid/predict tag */
1341 uint64_t ic_lower; /* Lower valid/predict tag */