x86 emulator: Add 'push es' instruction (opcode 0x06)
Review
Quoted 9 lines · Mohammed Gamal
(quoted diff) +7
-0+static void emulate_push_sreg(struct x86_emulate_ctxt *ctxt, int seg) +{ + struct decode_cache *c =&ctxt->decode; + c->src.ptr = (unsigned long *)&c->regs[seg]; + emulate_push(ctxt); +} +
This can't be right. c->regs[] is the general purpose register array, not the segment registers.
Signature · 1 line
error compiling committee.c: too many arguments to function