Skip to contentSkip to conversation

x86 emulator: Add 'push es' instruction (opcode 0x06)

PATCH Avi Kivity 1 participant 1 message Aug 16, 2009 1 message not in the archive KVM

lore
Share & tools
lore

Avi Kivity

author
#1 lore raw
In reply to a message not in the archive

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