Skip to content

CLI: Parse isla's section part#91

Open
febyeji wants to merge 1 commit into
mainfrom
feature/isla-section
Open

CLI: Parse isla's section part#91
febyeji wants to merge 1 commit into
mainfrom
feature/isla-section

Conversation

@febyeji
Copy link
Copy Markdown
Collaborator

@febyeji febyeji commented Mar 17, 2026

No description provided.

@febyeji febyeji marked this pull request as draft March 20, 2026 11:06
@febyeji febyeji force-pushed the feature/x86-tso-extraction branch from ff707fa to 03b3e55 Compare March 21, 2026 07:41
@febyeji febyeji force-pushed the feature/isla-section branch from a94aff3 to ae44510 Compare March 21, 2026 07:41
@febyeji febyeji force-pushed the feature/x86-tso-extraction branch from 03b3e55 to 250237b Compare March 21, 2026 08:26
@febyeji febyeji force-pushed the feature/isla-section branch from ae44510 to a875bc3 Compare March 21, 2026 08:26
@febyeji febyeji changed the base branch from feature/x86-tso-extraction to main March 21, 2026 08:27
@febyeji febyeji force-pushed the feature/isla-section branch from a875bc3 to daa2d91 Compare March 21, 2026 08:36
@febyeji febyeji force-pushed the feature/isla-section branch 2 times, most recently from ba66dd5 to 06b5be2 Compare April 6, 2026 04:23
@febyeji febyeji changed the base branch from main to feature/assembler-elf-pipeline April 6, 2026 08:33
@febyeji febyeji force-pushed the feature/isla-section branch from 06b5be2 to 1529e83 Compare April 6, 2026 11:59
@febyeji febyeji force-pushed the feature/assembler-elf-pipeline branch from cb2163b to a4869ad Compare April 6, 2026 11:59
@febyeji febyeji force-pushed the feature/assembler-elf-pipeline branch from a4869ad to d3b7fd0 Compare April 15, 2026 09:20
@febyeji febyeji force-pushed the feature/isla-section branch from 1529e83 to 951abfd Compare April 15, 2026 09:20
@febyeji febyeji marked this pull request as ready for review April 21, 2026 06:43
@tperami
Copy link
Copy Markdown
Collaborator

tperami commented Apr 28, 2026

Please add one arm seq test and one arm um test using this feature

febyeji added a commit that referenced this pull request Apr 29, 2026
Adds two end-to-end tests that load fixed-address code via [section.*]
and reach it from thread code:

- arm/seq/EOR+section.litmus.toml: 1 thread, B-jumps to a section that
  performs EOR, then B-returns to the natural termination PC
- arm/um/MP+section-call.litmus.toml: 2 threads (MP pattern), thread.1
  detours through a section to do its second LDR before terminating

Both tests pass on seq, ump, and vmp models. Pattern uses unconditional
B (BL/RET are not in sail-tiny-arm's user-mode encoding set), so the
section feature is exercised without depending on [thread.N.reset] or
function-eval which live on parallel/downstream branches.

Addresses tperami's review on #91.
@febyeji febyeji force-pushed the feature/isla-section branch from 22d4769 to 98654cb Compare April 29, 2026 04:09
@febyeji febyeji force-pushed the feature/assembler-elf-pipeline branch from d3b7fd0 to acce1a4 Compare April 29, 2026 05:59
@febyeji febyeji force-pushed the feature/isla-section branch from 98654cb to 57f4f00 Compare April 29, 2026 05:59
@febyeji febyeji force-pushed the feature/assembler-elf-pipeline branch from acce1a4 to 7c90ade Compare April 30, 2026 06:03
@febyeji febyeji force-pushed the feature/isla-section branch 2 times, most recently from d3e0249 to bccbb84 Compare April 30, 2026 06:20
@febyeji febyeji force-pushed the feature/assembler-elf-pipeline branch 2 times, most recently from 8ac5cbf to eb03070 Compare April 30, 2026 08:25
@febyeji febyeji force-pushed the feature/isla-section branch from bccbb84 to 219b09a Compare May 1, 2026 04:20
Copy link
Copy Markdown
Collaborator

@tperami tperami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, thanks, waiting for the previous PR

Comment thread cli/lib/isla/ir.ml Outdated
Comment thread cli/tests/converter/expect/arm/seq/EOR+section.litmus.toml
@febyeji febyeji force-pushed the feature/assembler-elf-pipeline branch 2 times, most recently from 592370a to 9277e33 Compare May 7, 2026 12:09
@febyeji febyeji force-pushed the feature/isla-section branch from 219b09a to 006b33b Compare May 7, 2026 12:15
@febyeji febyeji force-pushed the feature/assembler-elf-pipeline branch from 9277e33 to e24dfbf Compare May 12, 2026 09:11
@febyeji febyeji deleted the branch main May 12, 2026 12:08
@febyeji febyeji closed this May 12, 2026
@febyeji febyeji reopened this May 12, 2026
@febyeji febyeji changed the base branch from feature/assembler-elf-pipeline to main May 12, 2026 12:39
@febyeji febyeji force-pushed the feature/isla-section branch from 006b33b to 2ae3039 Compare May 12, 2026 12:53
Copy link
Copy Markdown
Collaborator

@tperami tperami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few nits, but otherwise LGTM

Comment thread cli/lib/isla/ir.ml
l

let parse_section (name, table) =
let _ = Toml.get_table table in
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need that anymore

"""

[section.helper]
address = 0x10000
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
address = 0x10000
address = 0x1000

That's enough and will generate smaller numbers everywhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants