`--dump-initial-registers-yaml` option doesn't work
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.
Hi @kv-sc , i would like to work on this issue if it's possible! Coulde you give me some more information about it)
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.
Is this issue active @kv-sc ? Can i work on this issue?
@snjr04 sure, go ahead
Hi @snjr04, are you still actively working on this? If not, I’d be happy to take it over