unsigned int *insn_bytes,
enum x86_emulate_fpu_type *fpu_type,
#define fpu_type (*fpu_type) /* for get_fpu() */
- struct stub_exn *stub_exn,
-#define stub_exn (*stub_exn) /* for invoke_stub() */
mmval_t *mmvalp)
+#define stub_exn (*s->stub_exn) /* for invoke_stub() */
{
uint8_t b;
int rc;
unsigned long ip;
+ struct stub_exn *stub_exn;
+
#ifndef NDEBUG
/*
* Track caller of x86_decode_insn() to spot missing as well as
const struct x86_emulate_ops *ops,
unsigned int *insn_bytes,
enum x86_emulate_fpu_type *fpu_type,
- struct stub_exn *stub_exn,
mmval_t *mmvalp);
int x86emul_0f01(struct x86_emulate_state *s,
struct cpu_user_regs *regs,
#ifndef X86EMUL_NO_FPU
case 0x9b: /* wait/fwait */
case 0xd8 ... 0xdf: /* FPU */
+ state->stub_exn = &stub_exn;
rc = x86emul_fpu(state, &_regs, &dst, &src, ctxt, ops,
- &insn_bytes, &fpu_type, &stub_exn, mmvalp);
+ &insn_bytes, &fpu_type, mmvalp);
goto dispatch_from_helper;
#endif