Previous 15994 Revisions Next

r13166 Wednesday 2nd November, 2011 at 22:20:32 UTC by R. Belmont
Stub 68040 version of PTEST (nw) (required for macqd700 to boot)
[src/emu/cpu/m68000]m68k_in.c

src/emu/cpu/m68000/m68k_in.c
r13165r13166
215215      }
216216      ostruct++;
217217   }
218   while(ostruct->mask == 0xffd8)
219   {
220      for(i = 0;i < 2;i++)
221      {
222         for(j = 0;j < 8;j++)
223         {
224            m68ki_set_one(ostruct->match | (i << 5) | j, ostruct);
225         }
226      }
227      ostruct++;
228   }
218229   while(ostruct->mask == 0xfff0)
219230   {
220231      for(i = 0;i <= 0x0f;i++)
r13165r13166
238249      m68ki_set_one(ostruct->match, ostruct);
239250      ostruct++;
240251   }
252
253   // if we fell all the way through with a non-zero mask, the opcode table wasn't built properly
254   if (ostruct->mask != 0)
255   {
256      fatalerror("m68ki_build_opcode_table: unhandled opcode mask %x (match %x), m68k core will not function!\n", ostruct->mask, ostruct->match);
257   }
241258}
242259
243260
r13165r13166
744761pea       32  .     .     0100100001......  A..DXWLdx.  U U U U U U U   6   6   5   5   5   5   5
745762pflush    32  .     .     1111010100011000  ..........  . . . . S S .   .   .   .   .   4   4   4 TODO: correct timing
746763pmmu      32  .     .     1111000.........  ..........  . . S S S S S   .   .   8   8   8   8   8
764ptest     32  .     .     1111010101.01...  ..........  . . . . S . .   .   .   .   .   8   .   .
747765reset      0  .     .     0100111001110000  ..........  S S S S S S S   0   0   0   0   0   0   0
748766ror        8  s     .     1110...000011...  ..........  U U U U U U U   6   6   8   8   8   8   8
749767ror       16  s     .     1110...001011...  ..........  U U U U U U U   6   6   8   8   8   8   8
r13165r13166
82088226   }
82098227}
82108228
8229M68KMAKE_OP(ptest, 32, ., .)
8230{
8231   if ((CPU_TYPE_IS_040_PLUS((mc68kcpu)->cpu_type)) && ((mc68kcpu)->has_pmmu))
8232   {
8233      logerror("68040: unhandled PTEST\n");
8234      return;
8235   }
8236   else
8237   {
8238      m68ki_exception_1111(mc68kcpu);
8239   }
8240}
8241
82118242M68KMAKE_OP(reset, 0, ., .)
82128243{
82138244   if((mc68kcpu)->s_flag)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team