[Qemu-devel] target-mips: Can we change function 'decode_opc' to table-driven architecture?

2015-07-26 Thread jpcstpj7281
I noticed that in function 'decode_opc()'(/target-mips/translate.c), there are so many switch case sentence, why don't we change it to a table-driven architecture? I've written a simple demo as following: struct MIPSInstruction{ int op; void (*op_func)(CPUMIPSState *, DisasContext

[Qemu-devel] target-mips: Can we change function 'decode_opc' to table-driven architecture?

2015-07-26 Thread jpcstpj7281
I noticed that in function 'decode_opc()'(/target-mips/translate.c), there are so many switch case sentence, why don't we change it to a table-driven architecture? I've written a simple demo as following: struct MIPSInstruction{     int     op;     void  (*op_func)(CPUMIPSState *, DisasContext *