trunk/src/emu/cpu/drcfe.c
r241617 | r241618 | |
160 | 160 | { |
161 | 161 | // initialize the description |
162 | 162 | 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; |
165 | 165 | desc->pc = curpc; |
166 | 166 | desc->physpc = curpc; |
167 | 167 | 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)); |
168 | 177 | |
169 | 178 | // call the callback to describe an instruction |
170 | 179 | if (!describe(*desc, prevdesc)) |