snippy icon indicating copy to clipboard operation
snippy copied to clipboard

`--dump-initial-registers-yaml` option doesn't work

Open cesarus777 opened this issue 2 years ago • 5 comments

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.

cesarus777 avatar Apr 14 '24 02:04 cesarus777

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

GrigoriyNovitskiy avatar Jul 30 '24 18:07 GrigoriyNovitskiy

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.

kv-sc avatar Jul 31 '24 12:07 kv-sc

Is this issue active @kv-sc ? Can i work on this issue?

snjr04 avatar Dec 04 '25 10:12 snjr04

@snjr04 sure, go ahead

kv-sc avatar Dec 10 '25 11:12 kv-sc

Hi @snjr04, are you still actively working on this? If not, I’d be happy to take it over

MaxGud10 avatar Mar 12 '26 09:03 MaxGud10