blob: 13d6e8db952fadf1bb911ec1a87e76cdcb04a351 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
Illegal instruction when run Unixbench binary
**What Program**
UnixBench: <https://github.com/kdlucas/byte-unixbench.git>.
Precompiled binary tarball from [here](https://mega.nz/file/2Ap2yLpa#fhrsi1Weh8jRPx54ccCktZptN-TuQgGaZDxaNACoA_o)
**Describe the bug**
I try to run unixbench with FEX-2305 in a kunpeng920(ARMv8.2), but failed with Illegal instruction.
It seems that when run FEX with a host that `SupportsAVX = false` cause this. There may be something wrong with current OpcodeDispatcher.
**To Reproduce**
Steps to reproduce the behavior:
1. Compile UnixBench in x86 machine, or just download the [precompiled tarball](https://mega.nz/file/2Ap2yLpa#fhrsi1Weh8jRPx54ccCktZptN-TuQgGaZDxaNACoA_o).
2. Set `"EnableAVX": "0"` in Config.json
3. Run `/build/Bin/FEXLoader -- /path/to/byte-unixbench/UnixBench/pgms/dhry2`
4. See error
**Expected behavior**
print help info normally.
```txt
Usage: ../x86/byte-unixbench/UnixBench/pgms/dhry2 duration
```
**Screenshots and Video**
```txt
[ERROR] Invalid or Unknown instruction: VMOVDQA 0x0
[ERROR] Invalid or Unknown instruction: VMOVUPS 0x0
[ERROR] Invalid or Unknown instruction: VMOVAPS 0x0
Illegal instruction
```
**System information:**
- OS: Debian bullseye container
- CPU/SoC: [kunpeng920](https://www.hisilicon.com/en/products/Kunpeng/Huawei-Kunpeng/Huawei-Kunpeng-920)
- RootFS used: Self Created Debian bullseye Rootfs
- FEX version: (FEXGetConfig --version) [FEX-2305]
- Thunks Enabled: [No]
**Additional context**
- Is this an x86 or x86-64 program: [x86-64]
- Does this reproduce on x86-64 host with FEX: [Untested]
- Does this reproduce on AArch64 with Radeon/Intel/Nvidia: [Untested and Unrelated]
|