Re: [PATCH][RESEND] x86 emulator: Add 'push/pop sreg' instructions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/23/2009 02:24 PM, Mohammed Gamal wrote:
Signed-off-by: Mohammed Gamal<m.gamal005@xxxxxxxxx>

Applied, thanks.

+static int emulate_pop_sreg(struct x86_emulate_ctxt *ctxt,
+			     struct x86_emulate_ops *ops, int seg)
+{
+	struct decode_cache *c =&ctxt->decode;
+	u16 selector;
+	int rc;
+
+	rc = emulate_pop(ctxt, ops,&selector, c->op_bytes);

This overflows the stack. I changed 'selector' to be unsigned long to fix this.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux