Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--dump-initial-registers-yaml option doesn't work #22

Open
cesarus777 opened this issue Apr 14, 2024 · 2 comments
Open

--dump-initial-registers-yaml option doesn't work #22

cesarus777 opened this issue Apr 14, 2024 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@cesarus777
Copy link

Reproduced on 1.0

layout.yaml:

options:
  march: riscv64
  model-plugin: None
  seed: 0
  dump-initial-registers-yaml: regs.yaml

sections:
  - name: text
    VMA: 0x1000
    LMA: 0x1000
    SIZE: 0x1000
    ACCESS: rx
  - name: data
    VMA: 0x2000
    LMA: 0x2000
    SIZE: 0x1000
    ACCESS: rw

histogram:
  - [ADD, 1]

Command:

llvm-snippy layout.yaml

Output:

ld.lld: warning: cannot find entry symbol _start; not setting start address
warning: Skipping snippet execution on the model: model was set no 'None'.
remark: Snippet generator generated relocatable image: please, use linker with provided script to generate final image
_______
  Test Generation resulted in the following warnings:
    * Skipping snippet execution on the model: model was set no 'None'. (x1)
❯ ls -a
.  ..  layout.yaml  layout.yaml.elf  layout.yaml.ld

regs.yaml file wasn't generated.

@kv-sc kv-sc added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Jun 18, 2024
@GrigoriyNovitskiy
Copy link

Hi @kv-sc , i would like to work on this issue if it's possible!
Coulde you give me some more information about it)

@kv-sc
Copy link
Collaborator

kv-sc commented Jul 31, 2024

Hi, @GrigoriyNovitskiy, thanks for taking on this issue.

A core functionality of llvm-snippy is the ability to dump the initial state of registers. This can be useful if you are setting this state before the snippet via some external code.

Please try running llvm-snippy as described in the ticket. You should not see a file with the initial register states. This is the problem. Now, please try to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants