Disclosed are compounds of Formula (I) or a salt or
prodrug thereof, wherein: X1 and X2 are independently C or N, provided that zero or one of X1 and X2 is N; Ring A represented by the structure is: or; and Q, R1, R2, R3, R4, R6, and p are define herein. Also disclosed are methods of using such compounds as modulators of IRAK4, and pharmaceutical compositions comprising such compounds. These compounds are useful in treating, preventing, or slowing inflammatory and autoimmune diseases, or in the treatment of
cancer.