Added MIPS support and projects for all samples.

This commit is contained in:
xorstream
2017-01-23 01:05:08 +11:00
parent 1756ae770b
commit 72a497bc14
55 changed files with 3295 additions and 772 deletions

View File

@@ -977,15 +977,6 @@ typedef struct CPUX86State {
uint8_t nmi_injected;
uint8_t nmi_pending;
#if NB_MMU_MODES == 0
#error NB_MMU_MODES is zero
#endif
#if CPU_TLB_SIZE == 0
#error CPU_TLB_SIZE is zero
#endif
#if CPU_VTLB_SIZE == 0
#error CPU_VTLB_SIZE is zero
#endif
CPU_COMMON
/* Fields from here on are preserved across CPU reset. */

View File

@@ -1144,10 +1144,7 @@ static CCPrepare gen_prepare_cc(DisasContext *s, int b, TCGv reg)
jcc_op = (b >> 1) & 7;
switch (s->cc_op) {
case CC_OP_SUBB:
case CC_OP_SUBW:
case CC_OP_SUBL:
case CC_OP_SUBQ:
case CC_OP_SUBB: case CC_OP_SUBW: case CC_OP_SUBL: case CC_OP_SUBQ:
/* We optimize relational operators for the cmp/jcc case. */
size = s->cc_op - CC_OP_SUBB;
switch (jcc_op) {