All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Support for BMIPS4380 CPU?
@ 2011-02-03  9:05 xeros
  2011-02-04 20:08 ` Aurelien Jarno
  0 siblings, 1 reply; 4+ messages in thread
From: xeros @ 2011-02-03  9:05 UTC (permalink / raw)
  To: qemu-devel

Hi,
I'd like to ask about support for newer CPUs in QEMU, like this one:
system type             : BCM3556C0 DTV platform
processor               : 0
cpu model               : Broadcom BMIPS4380 V4.4  FPU V0.1
BogoMIPS                : 403.45
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : no
ASEs implemented        : mips16
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 1
cpu model               : Broadcom BMIPS4380 V4.4  FPU V0.1
BogoMIPS                : 403.45
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : no
ASEs implemented        : mips16
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

I've tried all the available -cpu and -M options combinations (in QEMU 
from 0.11 to 0.13) but still no luck to even start booting the Linux 
kernel compiled for this CPU.
When I boot the other Linux system image prepared for 'malta' machine and 
try to run any even static compiled binaries from machine which uses the 
not yet supported CPU I get 'Illegal instruction' message.

'file' command output on such binaries is:
busybox: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), 
statically linked, stripped

While the ones compiled for system in 'malta' QEMU virtual machine is:
busybox-orig-qemu: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 
(SYSV), statically linked, stripped

Thank you in advance.

-- 
xeros

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

* Re: [Qemu-devel] Support for BMIPS4380 CPU?
  2011-02-03  9:05 [Qemu-devel] Support for BMIPS4380 CPU? xeros
@ 2011-02-04 20:08 ` Aurelien Jarno
  2011-02-06 16:20   ` xeros
  0 siblings, 1 reply; 4+ messages in thread
From: Aurelien Jarno @ 2011-02-04 20:08 UTC (permalink / raw)
  To: xeros; +Cc: qemu-devel

On Thu, Feb 03, 2011 at 10:05:36AM +0100, xeros wrote:
> Hi,

Hi,

> I'd like to ask about support for newer CPUs in QEMU, like this one:
> system type             : BCM3556C0 DTV platform
> processor               : 0
> cpu model               : Broadcom BMIPS4380 V4.4  FPU V0.1
> BogoMIPS                : 403.45
> wait instruction        : yes
> microsecond timers      : yes
> tlb_entries             : 32
> extra interrupt vector  : yes
> hardware watchpoint     : no
> ASEs implemented        : mips16
> shadow register sets    : 1
> core                    : 0
> VCED exceptions         : not available
> VCEI exceptions         : not available
> 
> processor               : 1
> cpu model               : Broadcom BMIPS4380 V4.4  FPU V0.1
> BogoMIPS                : 403.45
> wait instruction        : yes
> microsecond timers      : yes
> tlb_entries             : 32
> extra interrupt vector  : yes
> hardware watchpoint     : no
> ASEs implemented        : mips16
> shadow register sets    : 1
> core                    : 0
> VCED exceptions         : not available
> VCEI exceptions         : not available
> 
> I've tried all the available -cpu and -M options combinations (in
> QEMU from 0.11 to 0.13) but still no luck to even start booting the
> Linux kernel compiled for this CPU.
> When I boot the other Linux system image prepared for 'malta'
> machine and try to run any even static compiled binaries from
> machine which uses the not yet supported CPU I get 'Illegal
> instruction' message.
> 
> 'file' command output on such binaries is:
> busybox: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV),
> statically linked, stripped
> 
> While the ones compiled for system in 'malta' QEMU virtual machine is:
> busybox-orig-qemu: ELF 32-bit LSB executable, MIPS, MIPS-I version 1
> (SYSV), statically linked, stripped
> 

You need to emulate a platform and a CPU matching your kernel. Currently
QEMU doesn't support this Broadcom CPU, nor this platform.

Aurelien

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

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

* Re: [Qemu-devel] Support for BMIPS4380 CPU?
  2011-02-04 20:08 ` Aurelien Jarno
@ 2011-02-06 16:20   ` xeros
  2011-02-06 23:47     ` Aurelien Jarno
  0 siblings, 1 reply; 4+ messages in thread
From: xeros @ 2011-02-06 16:20 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: qemu-devel

On Fri, 4 Feb 2011, Aurelien Jarno wrote:

> On Thu, Feb 03, 2011 at 10:05:36AM +0100, xeros wrote:
>> Hi,
>
> Hi,
>
>> I'd like to ask about support for newer CPUs in QEMU, like this one:
>> system type             : BCM3556C0 DTV platform
>> processor               : 0
>> cpu model               : Broadcom BMIPS4380 V4.4  FPU V0.1
>> BogoMIPS                : 403.45
>> wait instruction        : yes
>> microsecond timers      : yes
>> tlb_entries             : 32
>> extra interrupt vector  : yes
>> hardware watchpoint     : no
>> ASEs implemented        : mips16
>> shadow register sets    : 1
>> core                    : 0
>> VCED exceptions         : not available
>> VCEI exceptions         : not available
>>
>> processor               : 1
>> cpu model               : Broadcom BMIPS4380 V4.4  FPU V0.1
>> BogoMIPS                : 403.45
>> wait instruction        : yes
>> microsecond timers      : yes
>> tlb_entries             : 32
>> extra interrupt vector  : yes
>> hardware watchpoint     : no
>> ASEs implemented        : mips16
>> shadow register sets    : 1
>> core                    : 0
>> VCED exceptions         : not available
>> VCEI exceptions         : not available
>>
>> I've tried all the available -cpu and -M options combinations (in
>> QEMU from 0.11 to 0.13) but still no luck to even start booting the
>> Linux kernel compiled for this CPU.
>> When I boot the other Linux system image prepared for 'malta'
>> machine and try to run any even static compiled binaries from
>> machine which uses the not yet supported CPU I get 'Illegal
>> instruction' message.
>>
>> 'file' command output on such binaries is:
>> busybox: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV),
>> statically linked, stripped
>>
>> While the ones compiled for system in 'malta' QEMU virtual machine is:
>> busybox-orig-qemu: ELF 32-bit LSB executable, MIPS, MIPS-I version 1
>> (SYSV), statically linked, stripped
>>
>
> You need to emulate a platform and a CPU matching your kernel. Currently
> QEMU doesn't support this Broadcom CPU, nor this platform.
>
> Aurelien
>

Are there any plans for extending support for such CPUs or something 
simmilar which could run the binaries compiled for such CPU?

-- 
xeros

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

* Re: [Qemu-devel] Support for BMIPS4380 CPU?
  2011-02-06 16:20   ` xeros
@ 2011-02-06 23:47     ` Aurelien Jarno
  0 siblings, 0 replies; 4+ messages in thread
From: Aurelien Jarno @ 2011-02-06 23:47 UTC (permalink / raw)
  To: xeros; +Cc: qemu-devel

On Sun, Feb 06, 2011 at 05:20:54PM +0100, xeros wrote:
> On Fri, 4 Feb 2011, Aurelien Jarno wrote:
>
>> On Thu, Feb 03, 2011 at 10:05:36AM +0100, xeros wrote:
>>> Hi,
>>
>> Hi,
>>
>>> I'd like to ask about support for newer CPUs in QEMU, like this one:
>>> system type             : BCM3556C0 DTV platform
>>> processor               : 0
>>> cpu model               : Broadcom BMIPS4380 V4.4  FPU V0.1
>>> BogoMIPS                : 403.45
>>> wait instruction        : yes
>>> microsecond timers      : yes
>>> tlb_entries             : 32
>>> extra interrupt vector  : yes
>>> hardware watchpoint     : no
>>> ASEs implemented        : mips16
>>> shadow register sets    : 1
>>> core                    : 0
>>> VCED exceptions         : not available
>>> VCEI exceptions         : not available
>>>
>>> processor               : 1
>>> cpu model               : Broadcom BMIPS4380 V4.4  FPU V0.1
>>> BogoMIPS                : 403.45
>>> wait instruction        : yes
>>> microsecond timers      : yes
>>> tlb_entries             : 32
>>> extra interrupt vector  : yes
>>> hardware watchpoint     : no
>>> ASEs implemented        : mips16
>>> shadow register sets    : 1
>>> core                    : 0
>>> VCED exceptions         : not available
>>> VCEI exceptions         : not available
>>>
>>> I've tried all the available -cpu and -M options combinations (in
>>> QEMU from 0.11 to 0.13) but still no luck to even start booting the
>>> Linux kernel compiled for this CPU.
>>> When I boot the other Linux system image prepared for 'malta'
>>> machine and try to run any even static compiled binaries from
>>> machine which uses the not yet supported CPU I get 'Illegal
>>> instruction' message.
>>>
>>> 'file' command output on such binaries is:
>>> busybox: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV),
>>> statically linked, stripped
>>>
>>> While the ones compiled for system in 'malta' QEMU virtual machine is:
>>> busybox-orig-qemu: ELF 32-bit LSB executable, MIPS, MIPS-I version 1
>>> (SYSV), statically linked, stripped
>>>
>>
>> You need to emulate a platform and a CPU matching your kernel. Currently
>> QEMU doesn't support this Broadcom CPU, nor this platform.
>>
>> Aurelien
>>
>
> Are there any plans for extending support for such CPUs or something  
> simmilar which could run the binaries compiled for such CPU?
>

I don't think there is an interest for such a platform given it is not
a very common platform, which doesn't means it can't be added if someone
wants to do the job.

About binaries, if you talk about userland binaries, you can run normal
binaries without problem with QEMU, provided you use the kernel 
corresponding to the emulated hardware.

If you talk about kernels, you obviously need to emulate the hardware
corresponding to your kernel.

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

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

end of thread, other threads:[~2011-02-06 23:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-03  9:05 [Qemu-devel] Support for BMIPS4380 CPU? xeros
2011-02-04 20:08 ` Aurelien Jarno
2011-02-06 16:20   ` xeros
2011-02-06 23:47     ` Aurelien Jarno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.