Skip to contentSkip to conversation

qemu-arm does not reject vrintz on non-v8 cpu

Qemu-devel Christophe Lyon 3 participants 6 messages Jun 8, 2016 – Jan 17, 2017

lore
Share & tools
lore
#0 lore raw

Public bug reported:

Hello,

It seems that qemu-arm does not reject some v8-only instructions as it should, but executes them "correctly".

For instance, while compiling/running some of the GCC ARM instrinsics tests, we noticed that vrintz should be rejected on cortex-a9 for instance, while it is executed as if the instruction was supported.

objdump says:
1074c: f3fa05a0 vrintz.f32 d16, d16
and qemu -d in_asm says:
0x0001074c: f3fa05a0 vabal.u<illegal width 64> q8, d26, d16

The problem is still present in qemu-2.6.0

** Affects: qemu
Importance: Undecided
Status: New

Signature · 28 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1590336

Title:
  qemu-arm does not reject vrintz on non-v8 cpu

Status in QEMU:
  New

Bug description:
  Hello,

  It seems that qemu-arm does not reject some v8-only instructions as it
  should, but executes them "correctly".

  For instance, while compiling/running some of the GCC ARM instrinsics tests, we noticed that
  vrintz should be rejected on cortex-a9 for instance, while it is executed as if the instruction was supported.

  objdump says:
     1074c:       f3fa05a0        vrintz.f32      d16, d16
  and qemu -d in_asm says:
  0x0001074c:  f3fa05a0      vabal.u<illegal width 64>    q8, d26, d16

  The problem is still present in qemu-2.6.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1590336/+subscriptions
#1 lore raw

Should be fixed by http://patchwork.ozlabs.org/patch/633105/

Signature · 28 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1590336

Title:
  qemu-arm does not reject vrintz on non-v8 cpu

Status in QEMU:
  New

Bug description:
  Hello,

  It seems that qemu-arm does not reject some v8-only instructions as it
  should, but executes them "correctly".

  For instance, while compiling/running some of the GCC ARM instrinsics tests, we noticed that
  vrintz should be rejected on cortex-a9 for instance, while it is executed as if the instruction was supported.

  objdump says:
     1074c:       f3fa05a0        vrintz.f32      d16, d16
  and qemu -d in_asm says:
  0x0001074c:  f3fa05a0      vabal.u<illegal width 64>    q8, d26, d16

  The problem is still present in qemu-2.6.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1590336/+subscriptions
#2 lore raw
In reply to Christophe Lyon

I confirm your patch does fix the problem.

You may still want to fix the disassembler such that it dumps the right instruction, but that would be a separate fix.

Thanks for your quick support.

Signature · 28 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1590336

Title:
  qemu-arm does not reject vrintz on non-v8 cpu

Status in QEMU:
  New

Bug description:
  Hello,

  It seems that qemu-arm does not reject some v8-only instructions as it
  should, but executes them "correctly".

  For instance, while compiling/running some of the GCC ARM instrinsics tests, we noticed that
  vrintz should be rejected on cortex-a9 for instance, while it is executed as if the instruction was supported.

  objdump says:
     1074c:       f3fa05a0        vrintz.f32      d16, d16
  and qemu -d in_asm says:
  0x0001074c:  f3fa05a0      vabal.u<illegal width 64>    q8, d26, d16

  The problem is still present in qemu-2.6.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1590336/+subscriptions
#3 lore raw
Quoted 2 lines · Christophe Lyon

You may still want to fix the disassembler such that it dumps the right instruction, but that would be a separate fix.

Unfortunately the disassembler is the pre-GPLv3 binutils one, so we can't just update it (and I'm not particularly inclined to independently re-implement all the 32-bit instruction set changes post that change).

thanks
-- PMM

#4 lore raw
In reply to Christophe Lyon

** Changed in: qemu
Status: New => Fix Committed

Signature · 28 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1590336

Title:
  qemu-arm does not reject vrintz on non-v8 cpu

Status in QEMU:
  Fix Committed

Bug description:
  Hello,

  It seems that qemu-arm does not reject some v8-only instructions as it
  should, but executes them "correctly".

  For instance, while compiling/running some of the GCC ARM instrinsics tests, we noticed that
  vrintz should be rejected on cortex-a9 for instance, while it is executed as if the instruction was supported.

  objdump says:
     1074c:       f3fa05a0        vrintz.f32      d16, d16
  and qemu -d in_asm says:
  0x0001074c:  f3fa05a0      vabal.u<illegal width 64>    q8, d26, d16

  The problem is still present in qemu-2.6.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1590336/+subscriptions
#5 lore raw
In reply to Christophe Lyon

** Changed in: qemu
Status: Fix Committed => Fix Released

Signature · 28 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1590336

Title:
  qemu-arm does not reject vrintz on non-v8 cpu

Status in QEMU:
  Fix Released

Bug description:
  Hello,

  It seems that qemu-arm does not reject some v8-only instructions as it
  should, but executes them "correctly".

  For instance, while compiling/running some of the GCC ARM instrinsics tests, we noticed that
  vrintz should be rejected on cortex-a9 for instance, while it is executed as if the instruction was supported.

  objdump says:
     1074c:       f3fa05a0        vrintz.f32      d16, d16
  and qemu -d in_asm says:
  0x0001074c:  f3fa05a0      vabal.u<illegal width 64>    q8, d26, d16

  The problem is still present in qemu-2.6.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1590336/+subscriptions