New target for Microblaze clone with two threads.

Hi guys,

I’m new here. I want to write a backend for a microblaze clone, aemb. (
I already copy the existing Mblaze target and rename it into aemb and it work exactly as Mblaze, for now.
My plan after this is to modify it according to my aemb core.

The difference between aemb and MBlaze is that aemb support two threads. Any advise or guide where should I dig into and modify?
Suggestions, opinions or anything at all will be really appreciated.