Re: mmx instruction support on bohcs

codepilot Account <[email protected]> Tue, 30 Apr 2013 10:52:38 -0700
Newsgroups gmane.comp.emulators.bochs.devel
Message-ID <CABe_6enR9i2124N1N0-F3UXooGYfEbdy1HzqAshCHyE2Ue8vQA@mail.gmail.com>
Can I have one of those cars?

You probably want to read about booting and protected mode, and a whole
bunch of other things as bochs emulates a whole computer.
If you are writing code to directly run on bochs then you are
kinda writing an operating system. So go see http://wiki.osdev.org/Main_Page
Now, if you are writing application code, I doubt your errors would be
happening in application code on major OSes, as they are good about
enabling the flags for mmx and sse, etc, as long as the features are
present.

On Fri, Apr 26, 2013 at 3:30 AM, Hatte John <[email protected]> wrote:

> thanks !
>
> I have got what you mean! I should enable some characters I want ,not
> modify its source .
> bochs is abstract  than os  ,  So i got confused ,consider it as fixed
> hardware.not programmable.
>
>  .
>
> . .
>
>
>
>
>
> 2013/4/26 Stanislav <[email protected]>
>
>> I bought a car and filled it with water instead of gasoline so it doesn’t
>> work.****
>>
>> What should change in the car firmware to make it working ?****
>>
>> ** **
>>
>> I strongly suggesting you to read Intel Software Developers manual first.
>> ****
>>
>> ** **
>>
>> Stanislav****
>>
>> ** **
>>
>> *From:* Hatte John [mailto:[email protected]]
>> *Sent:* Friday, April 26, 2013 6:14 AM
>> *To:* Thore Sittly
>> *Cc:* Stanislav; [email protected]
>> *Subject:* Re: Re: [Bochs-developers] mmx instruction support on bohcs***
>> *
>>
>> ** **
>>
>>   Need I   add these to bochs source ? if I want to enable sse .****
>>
>> ** **
>>
>> ** **
>>
>> 2013/4/26 Thore Sittly <[email protected]>****
>>
>> Maybe this should work:****
>>
>> ;now enable SSE and the like****
>>
>> mov eax, cr0****
>>
>> and ax, 0xFFFB         ;clear coprocessor emulation CR0.EM****
>>
>> or ax, 0x2                     ;set coprocessor monitoring  CR0.MP****
>>
>> mov cr0, eax****
>>
>> mov eax, cr4****
>>
>> or ax, 3 << 9          ;set CR4.OSFXSR and CR4.OSXMMEXCPT at the same time****
>>
>> mov cr4, eax****
>>
>> ret****
>>
>>  ****
>>
>>  ****
>>
>> ** **
>>
>
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> bochs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bochs-developers
>
>

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1

_______________________________________________
bochs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bochs-developers