Why does my boss act hot and cold with me recently?

Anonymous
he used to like me, praise me and always nice to me. now all of a sudden, he acts like he's mean and insult me or avoid me or ignore me. he asks me what have I done all day and where have I been all day when I am always at my desk doing my job and waiting for him to finish the work we need to submit to head office. but meanwhile he is busy chatting with other people in the other departments. he promised me a raise 2 years ago but lately he has been telling me to stop chatting with some new people because they can't be trusted and if I like my job, I should keep to myself or else he will have to fire me after 8 years.
Why does my boss act hot and cold with me recently?
2 Opinion