What's your outcome variable here? Why have you interacted it with a predictor variable?
You should be using -xtreg- for a fixed-effects regression. Assuming you just forgot to include "y" in your command above, and assuming that x1 and x2 are continuous variables, try something like:
xtset firm year xtreg y c.x1##c.x2 i.year, fe