Skip to contentSkip to conversation

?==?utf-8?q? Fw: some thoughts on nanoMIPS solution

Qemu-devel Aleksandar Markovic 1 participant 1 message Jul 5, 2018

lore
Share & tools
lore
#0 lore raw
Quoted 13 lines
Quoted 13 lines

Therefore, I think it makes sense to (more or less) split translate.c into, let's say, following set of files:

   * translate_cmn_chk.h - definitions of (typically inlined) functions check_XXX()
   * translate_cmn_gen.h - declarations of gen_XXX() family of functions, and definitions of such functions among them that are inlined
   * translate_cmn_gen.c - definitions of non-inlined gen_XXX() functions (including all their callees)

   * translate.h - common structure definitions such as DisasContext
   * translate.c - the rest of code after splitting

Quoted 5 lines
Quoted 3 lines

The nanoMIPS code would be, in such organization, in a separate file:

   * translate_nanomips.c

This sounds fine.  Thanks for being willing to tackle this.

I may submit something that attempts to be "the best of both worlds" between yours and mine alternative in next few days. Let's talk over the code. :)

Regards,
Aleksandar
 @bn7pr08mb4868.namprd08.prod.outlook.com>