The instructions are the same as those for adding a new processor (3.7.1) except the files of interest are cmp_template.h and cmp_template.cpp.
Also, when adding to the core, cmp.h and cmp.cpp should be altered.