> > +{ > > + .name = "MyCPU", > > + .insn_flags = CPU_MIPS1 | INSN_MYCPU, > > +}, > > ... > > I just need to simulate it's instruction set in linux user emulation, I > > didn't include CP0* items in the list. Is this good enough to add a new CPU > > model?
> Something like that might be acceptable for linux-user. > You should at least set CP0_PRid/Config0/Status_mask. > Look at this patch where Aleksandar accepted the R5900 CPU: > https://git.qemu.org/?p=qemu.git;a=commitdiff;h=ed4f49ba9bb56 > Can you share what is your CPU? It's working now. When I put the -cpu flag at the end of the command line, my cpu was not recognized. Thanks, Libo