Cpu gets heated in gaming on w7 not in xp

Which game?
Is it the same game that you were using on winXP, played at the same settings?

Not all game are as demanding on the CPU, there might just be a higher load, hence a higher temperature

Also, what kind of CPU is it, and what temperature are you reaching? It might be higher than what you're used to but still be normal.