ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/readcpu.cpp
(Generate patch)

Comparing BasiliskII/src/uae_cpu/readcpu.cpp (file contents):
Revision 1.6 by gbeauche, 2002-10-02T15:55:09Z vs.
Revision 1.8 by gbeauche, 2002-11-02T17:23:20Z

# Line 255 | Line 255 | static void build_insn (int insn)
255          int pos = 0;
256          int mnp = 0;
257          int bitno = 0;
258 <        char mnemonic[10];
258 >        char mnemonic[64];
259  
260          wordsizes sz = sz_long;
261          int srcgather = 0, dstgather = 0;
# Line 332 | Line 332 | static void build_insn (int insn)
332                      }
333                  }
334                  mnp++;
335 +                if ((unsigned)mnp >= sizeof(mnemonic) - 1) {
336 +                        mnemonic[sizeof(mnemonic) - 1] = 0;
337 +                        fprintf(stderr, "Instruction %s overflow\n", mnemonic);
338 +                        abort();
339 +                }
340              }
341              pos++;
342          }
# Line 786 | Line 791 | void read_table68k (void)
791                  ||      (table68k[opc].mnemo == i_BSR) \
792                  )
793  
794 +                // Precise const jumps as such. The JIT compiler will take
795 +                // care to actually enable that optimization or not
796 +                if (IS_CONST_JUMP(i))
797 +                        table68k[i].cflow |= fl_const_jump;
798 +
799                  // Fix flags used information for Scc, Bcc, TRAPcc, DBcc instructions
800                  int flags_used = table68k[i].flaglive;
801                  if      (       (mnemo == i_Scc)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines