qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel]  r4k doesn't support movz
@ 2012-05-18 11:38 Zhi-zhou Zhang
  2012-05-19  1:02 ` Johnson, Eric
  2012-05-19  9:02 ` Aurelien Jarno
  0 siblings, 2 replies; 5+ messages in thread
From: Zhi-zhou Zhang @ 2012-05-18 11:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: aurelien

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

Hi Aurelien,

I found that when qemu-system-mips64el executed 'movz' with -M mips, it
would raise a reserved instruction exception.
The mips spec describes movz as below:

Mnemonic               Instructio                      Defined in MIPS ISA
MOVZ            Move Conditional on Zero       MIPS32

I think ISA-64 should support MIPS32 instructions for compatible. am I
right?

-- 
Regards,
Zhizhou Zhang

[-- Attachment #2: Type: text/html, Size: 572 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [Qemu-devel]   r4k doesn't support movz
@ 2012-05-18 19:52 Hervé Poussineau
  0 siblings, 0 replies; 5+ messages in thread
From: Hervé Poussineau @ 2012-05-18 19:52 UTC (permalink / raw)
  To: etou.zh; +Cc: QEMU Developers

Hi,

Zhi-zhou Zhang a écrit :
> I found that when qemu-system-mips64el executed 'movz' with -M mips, 
> it would raise a reserved instruction exception.
> The mips spec describes movz as below:
>
> Mnemonic               Instructio                      Defined in MIPS ISA
> MOVZ            Move Conditional on Zero       MIPS32
>
> I think ISA-64 should support MIPS32 instructions for compatible. am I 
> right?

movz instruction is available on MIPS4 and MIPS32 instruction sets (+ 
Loongson2E/2F CPUs)
However, by default, 'mips' machine on qemu-system-mips64el uses a R4000 
CPU, which is only MIPS3 compatible.
You need to use another cpu which is MIPS4 or MIPS32 compatible with the 
-cpu option.

Regards,

Hervé

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

end of thread, other threads:[~2012-05-19  9:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-18 11:38 [Qemu-devel] r4k doesn't support movz Zhi-zhou Zhang
2012-05-19  1:02 ` Johnson, Eric
2012-05-19  2:30   ` Jia Liu
2012-05-19  9:02 ` Aurelien Jarno
  -- strict thread matches above, loose matches on Subject: below --
2012-05-18 19:52 Hervé Poussineau

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).