Previous 199869 Revisions Next

r33106 Saturday 1st November, 2014 at 09:48:52 UTC by Oliver Stöneberg
do not overwrite the opcode_desc.delay vptr in drc_frontend::describe_one() (nw)
[src/emu/cpu]drcfe.c

trunk/src/emu/cpu/drcfe.c
r241617r241618
160160{
161161   // initialize the description
162162   opcode_desc *desc = m_desc_allocator.alloc();
163   // TODO: this kills the opcode_desc.delay vptr
164   memset(desc, 0, sizeof(*desc));
163   desc->m_next = NULL;
164   desc->branch = NULL;
165165   desc->pc = curpc;
166166   desc->physpc = curpc;
167167   desc->targetpc = BRANCH_TARGET_DYNAMIC;
168   desc->opptr = { NULL };
169   desc->length = 0;
170   desc->delayslots = 0;
171   desc->skipslots = 0;
172   desc->flags = 0;
173   desc->cycles = 0;
174   memset(desc->regin, 0x00, sizeof(desc->regin));
175   memset(desc->regout, 0x00, sizeof(desc->regout));
176   memset(desc->regreq, 0x00, sizeof(desc->regreq));
168177
169178   // call the callback to describe an instruction
170179   if (!describe(*desc, prevdesc))


Previous 199869 Revisions Next


© 1997-2024 The MAME Team