2a3
> * Copyright (c) 2007 MIPS Technologies, Inc.
29a31
> * Korey Sewell
89,99c91,99
< static inline ExtMachInst
< makeExtMI(MachInst inst, ThreadContext * xc) {
< #if FULL_SYSTEM
< ExtMachInst ext_inst = inst;
< if (xc->readPC() && 0x1)
< return ext_inst|=(static_cast<ExtMachInst>(xc->readPC() & 0x1) << 32);
< else
< return ext_inst;
< #else
< return ExtMachInst(inst);
< #endif
---
> enum PredecodeResult {
> MoreBytes = 1,
> ExtMIReady = 2
> };
>
> static inline unsigned int
> predecode(ExtMachInst &emi, Addr, MachInst inst, ThreadContext *) {
> emi = inst;
> return MoreBytes | ExtMIReady;