It’s certainly (?) legal to implement an emulator for a given instruction set. I’m not sure how implementing a CPU in hardware would be different.
What clearly is subject to copyright is the documentation describing the instruction set and its semantics.