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

Order of yamls matter #10

Open
kv-sc opened this issue Mar 28, 2024 · 0 comments
Open

Order of yamls matter #10

kv-sc opened this issue Mar 28, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@kv-sc
Copy link
Collaborator

kv-sc commented Mar 28, 2024

Prepare YAML configs:

1.yaml

include:
    - 2.yaml
histogram:
    - [ADD, 1.0]

2.yaml

sections:
  - no:        0
    VMA:       0x10000
    SIZE:      0x20000
    LMA:       0x10000
    ACCESS:    r
  - no:        1
    VMA:       0x40000
    SIZE:      0x40000
    LMA:       0x40000
    ACCESS:    rx
  - no:        2
    VMA:       0x800000
    SIZE:      0x400000
    LMA:       0x800000
    ACCESS:    rw

3.yaml

access-ranges:
  - start: 0x800000
    size: 0x10000
    stride: 16
    first-offset: 0
    last-offset: 0

Now try following command lines:

$ ./llvm-snippy -march=riscv64-linux-gnu -num-instrs=10 -model-plugin=None 1.yaml 3.yaml
$ ./llvm-snippy -march=riscv64-linux-gnu -num-instrs=10 -model-plugin=None 3.yaml 1.yaml
1.yaml:1:1: warning: unknown key 'include'
include:
^~~~~~~
error: LLVM ERROR: Incorrect list of sections: list is empty

This error is really annoying.

@kv-sc kv-sc added bug Something isn't working good first issue Good for newcomers labels Mar 28, 2024
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
Projects
None yet
Development

No branches or pull requests

1 participant