Be sure the BIOS is up to date and the CPU is on the support list.
If it's Windows restarting, then you may have to install again BUT there is a known issue if you HIBERNATE and change RAM or CPU. You MUST !!!! SHUTDOWN instead of HIBERNATE (do not use the power button!!!) in order for Windows to do a clean shutdown.
Hello
i just bought a new CPU intel core i5 4690.I had a intel core i3.When i installed the new CPU the computer started to restart.Open for 2 sec and shutdowns and it keeps doing that.I took the new CPU out and installed the old one and it work.
My motherboard is Gigabyte Z87-HD3 Lga 1550

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic