Skip to content

Issue with ldrsb Instruction Exception #440

@memory-paper

Description

@memory-paper

Check List

  • [√ ] The binary I am trying to run has been compiled statically for either RV64 or AArch64.
  • [ √] The compiled binary is a Linux Elf file.
  • [ √] I have provided both a config file and a binary to SimEng as runtime arguments.

Binary File Information
Please run file on the binary used and paste the output below (i.e. file myBinary.elf).

test: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), statically linked, for GNU/Linux 3.7.0, with debug_info, not stripped

System Description
Please provide the following as a list:

  • The Operating System of the system you are running SimEng on
    Ubuntu20.04
  • The compiler used to compile SimEng and its version
    clang version 19.1.3
  • The compiler used to compile the static binary and its version
    gcc13.2 from https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads/13-2-rel1
  • The ISA or specific processor that the binary was compiled for
    -march=armv9.2-a -mcpu=neoverse-v1+sme2
  • The processor of the system you are running SimEng on
    A64FX_SME
  • The main memory capacity of the system you are running SimEng on

SimEng Version
Provide the SimEng repository branch, commit hash, and version tag (if relevant) that the issue is present on.
7af3bc3

SimEng CMAKE Options Used
Provide a bullet list of all CMAKE options used. E.g. -DCMAKE_BUILD_TYPE=Release.
-DCMAKE_BUILD_TYPE=Release

Binary Compilation Instructions
Provide a bullet list of how the binary in question was compiled, including all compiler flags used.
compiler flags: -march=armv9.2-a -mcpu=neoverse-v1+sme2

SimEng Command Line Expression
Provide the command line expression used to run SimEng e.g. ./simeng /path/to/configs/a64fx.yaml /path/to/myBinary.elf

SimEng Metadata Output
If your simulation begins to execute the binary, please provide the metadata that SimEng prints at the start of execution.
E.g.

[SimEng] Build metadata:
[SimEng]        Version: 0.9.6
[SimEng]        Compile Time - Date: 21:03:58 - Sep 28 2024
[SimEng]        Build type: {Release}
[SimEng]        Compile options: $<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>;-Wall;-pedantic;-Werror
[SimEng]        Test suite: {OFF}

[SimEng] Running in Out-of-Order mode
[SimEng] Workload: /home/lin/workspace/sme_test/test
[SimEng] Config file: a64fx_SME.yaml
[SimEng] ISA: AArch64
[SimEng] Auto-generated Special File directory: True
[SimEng] Special File directory used: /home/lin/workspace/SimEng/build/specialFiles/
[SimEng] Number of Cores: 1
[SimEng] Starting...


[SimEng:ExceptionHandler] Encountered execution not-yet-implemented exception
[SimEng:ExceptionHandler]   Generated by instruction:
[SimEng:ExceptionHandler]     0x000000000044eadc: 41 14 c0 38     ldrsb w1, [x2], #1
[SimEng:ExceptionHandler]       opcode ID: 3406
[SimEng:Core] Halting due to fatal exception

[SimEng] branch.executed: 1615
[SimEng] branch.mispredict: 581
[SimEng] branch.missrate: 36%
[SimEng] cycles: 7015
[SimEng] decode.earlyFlushes: 0
[SimEng] dispatch.rsStalls: 1004
[SimEng] fetch.branchStalls: 2075
[SimEng] flushes: 553
[SimEng] ipc: 0.74
[SimEng] issue.backendStalls: 462
[SimEng] issue.frontendStalls: 1279
[SimEng] issue.portBusyStalls: 62
[SimEng] lsq.loadViolations: 22
[SimEng] rename.allocationStalls: 5
[SimEng] rename.lqStalls: 0
[SimEng] rename.robStalls: 0
[SimEng] rename.sqStalls: 0
[SimEng] retired: 5194

Problem Description
Does SimEng not support the LDRSB instruction?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

ToDo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions