[BusyBox] Re: [Bochs-developers] bug: SSE2 instruction while executing busybox´ df

Andrew Derrick Balsa andrebalsa at mailingaddress.org
Thu May 1 16:24:00 UTC 2003


Hi Stanislav,

I can confirm the bug:

I have recompiled the application, and running it I get the following:
01013632917i[HD   ] cdrom: SEEK (ignored)
04585627884i[CPU0 ] FXRSTOR: restore FPU/MMX/SSE state
04585627917p[CPU0 ] >>PANIC<< CVTSI2SD_VsdEd: SSE2 instruction still not 
implemented
========================================================================
Event type: PANIC
Device: [CPU0 ]
Message: CVTSI2SD_VsdEd: SSE2 instruction still not implemented

A PANIC has occurred.  Do you want to:
  cont       - continue execution
  alwayscont - continue execution, and don't ask again.
               This affects only PANIC events from device [CPU0 ]
  die        - stop execution now
  abort      - dump core
Choose one of the actions above: [die]

Also I have checked the source code for the df command in Busybox, and I 
confirm there are a few floating point operations:
...
                printf("%-20s %9ld %9ld %9ld %3ld%% %s\n",
                                device,
                                (long) (s.f_blocks * (s.f_bsize / 
(double)KILOBYTE)),
                                (long) ((s.f_blocks - 
s.f_bfree)*(s.f_bsize/(double)KILOBYT
                                (long) (s.f_bavail * (s.f_bsize / 
(double)KILOBYTE)),
                                blocks_percent_used, mount_point);
...

I am using glibc-2.3.1 to link busybox.

Is there any way you could get this instruction emulated?

Thanks,

Andrew

On Thursday 01 May 2003 00:05, Stanislav Shwartsman wrote:
> CVTSI2SD_VsdEd - Convert one signed doubleword integer from r/m32 to one
> double-precision floating-point value in xmm.
> Opcode bytes F2 0F 2A /r
>
> Event type: PANIC
> Device: [CPU0 ]
> Message: CVTSI2SD_VsdEd: SSE2 instruction still not implemented
>
> What is busybox ?
> If it using floating point it may be compiled with SSE intruction
> instead of FPU one because of SSE instructions are much faster.
>
> Stanislav
>
> -----Original Message-----
> From: bochs-developers-admin at lists.sourceforge.net
> [mailto:bochs-developers-admin at lists.sourceforge.net] On Behalf Of
> Andrew Derrick Balsa
> Sent: Wednesday, April 30, 2003 4:06 PM
> To: Robert Millan
> Cc: bochs-developers at lists.sourceforge.net; busybox at busybox.net
> Subject: [Bochs-developers] bug: SSE2 instruction still not implemented
> (x86-64 emulation) - executing busybox df
>
>
> Hi,
>
> > I copied all the grub binary files. i guess i copied them from the
> > debian package of grub, but maybe i wanted to update it and copied
> > them from the filesystem in a grub rescue disk. iirc i used the
> > setup() command from the rescue disk but i'm not completely sure
> > either.
>
> OK, I booted from a Grub boot disk and managed to install grub on an
> image I
> just created with bximage, and partitioned inside bochs itself using
> your
> debian image as hda and my image as hdb.
>
> It´s working now. Thanks, Robert!
>
> But when I tried to execute the command ´df´ as implemented by busybox,
> I got
> the following message:
>
> ----
> 00000000000i[     ] using log file bochsout.txt
> ========================================================================
> Event type: PANIC
> Device: [CPU0 ]
> Message: CVTSI2SD_VsdEd: SSE2 instruction still not implemented
>
> A PANIC has occurred.  Do you want to:
>   cont       - continue execution
>   alwayscont - continue execution, and don't ask again.
>                This affects only PANIC events from device [CPU0 ]
>   die        - stop execution now
>   abort      - dump core
> Choose one of the actions above: [die]
> ========================================================================
> Bochs is exiting with the following message:
> [CPU0 ] CVTSI2SD_VsdEd: SSE2 instruction still not implemented
> ========================================================================
> ----
>
> Anybody has any idea why? What is the SSE2 instruction and why is
> busybox
> using SSE2 for a simple ´df´? This busybox for AMD64 was compiled with
> glibc-2.3.1 and statically linked.
>
> Thanks for any help,

-- 
André Derrick Balsa (Andrew)
andrebalsa at mailingaddress.org


More information about the busybox mailing list