qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Re: Bug in emulation of 'bound' x86 instruction?
  2004-07-26 13:41 [Qemu-devel] " Frode Vatvedt Fjeld
@ 2004-08-04 22:10 ` Frode Vatvedt Fjeld
  2004-08-15 14:51 ` [Qemu-devel] " Fabrice Bellard
  1 sibling, 0 replies; 3+ messages in thread
From: Frode Vatvedt Fjeld @ 2004-08-04 22:10 UTC (permalink / raw)
  To: qemu-devel

Frode Vatvedt Fjeld <frodef@cs.uit.no> writes:

> I'm suspecting that there's a bug in Qemu's emulation of the x86
> 'bound' instruction. The effect of this bug seems to be to add 1 to
> the ESP register, which of course havocs everything. [..]

Well, the response to this report has been nothing, but I'd really
like to see it fixed so that I'll be able to use qemu, which otherwise
seems to be really great. Also, it seems to me that if my report is
correct then this bug is quite serious, and can affect a lot of
software in unpredictable ways. I don't think I'll be able to submit a
patch for it myself, but if I can somehow assist someone "in the know"
with anything, please let me know.

Regards,
-- 
Frode Vatvedt Fjeld

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] Re: Bug in emulation of 'bound' x86 instruction?
@ 2004-08-05 15:21 Stefan Kisdaroczi
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kisdaroczi @ 2004-08-05 15:21 UTC (permalink / raw)
  To: qemu-devel

Hi all,

While testing my "DOS+Realtime Multitasking Extension" Images ( working 
with bochs ), two things did not work with qemu :

1) The BOUND instruction seems to raise always the Exception 5
if the second Parameter is a location in the cs seg.
Example: bound di, cs:1095

2) An Exception 13 is raised when a "les" instruction should get the 
seg:ofs pair from the ss seg.
Example: les di, ss:si+10

-> im not really sure if its really dependent of the used seg, but i 
have started multiple programs, and all crash on different locations 
always on the bound or les instructions. It was always cs used in case 
1) and ss used in case 2).

The system is running in mixed 16/32 Bit Protected mode. It happens in a 
16-bit code segment.

The System debugger starts automatically on the exceptions 5 and 13, so 
i have looked at the memory locations referred and the values there are 
correct.

What can i do to help you helping me ?

Thank you.

Greetings kisda

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] Re: Bug in emulation of 'bound' x86 instruction?
  2004-08-15 14:51 ` [Qemu-devel] " Fabrice Bellard
@ 2004-08-16 19:34   ` Frode Vatvedt Fjeld
  0 siblings, 0 replies; 3+ messages in thread
From: Frode Vatvedt Fjeld @ 2004-08-16 19:34 UTC (permalink / raw)
  To: qemu-devel

Fabrice Bellard <fabrice@bellard.org> writes:

> I just fixed the bug you mentionned regarding the 'bound'
> instruction. Any code using the bound instruction was likely to
> fail, so this fix may allow new OSes or programs to run...

That's great, thank you.

-- 
Frode Vatvedt Fjeld

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-16 19:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05 15:21 [Qemu-devel] Re: Bug in emulation of 'bound' x86 instruction? Stefan Kisdaroczi
  -- strict thread matches above, loose matches on Subject: below --
2004-07-26 13:41 [Qemu-devel] " Frode Vatvedt Fjeld
2004-08-04 22:10 ` [Qemu-devel] " Frode Vatvedt Fjeld
2004-08-15 14:51 ` [Qemu-devel] " Fabrice Bellard
2004-08-16 19:34   ` [Qemu-devel] " Frode Vatvedt Fjeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).