Skip to content

feat(Isla): Accept default page-table option - #195

Closed
febyeji wants to merge 3 commits into
feature/pgt-dsl-named-tablesfrom
feature/pgt-dsl-default-tables-option
Closed

febyeji wants to merge 3 commits into
feature/pgt-dsl-named-tablesfrom
feature/pgt-dsl-default-tables-option

Conversation

@febyeji

@febyeji febyeji commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator
  • Parse option default_tables = true statements in page_table_setup.
  • Preserve Isla compatibility while keeping the option as a builder no-op.
  • Reject default_tables = false and unsupported page-table option names during parsing.
  • Cover accepted and rejected values with parser unit tests.

@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch 2 times, most recently from 91ddeec to e4b8318 Compare July 4, 2026 14:01
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch from e2ea7ec to 68bd7b4 Compare July 4, 2026 14:01
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch from e4b8318 to a5a8c39 Compare July 4, 2026 14:27
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch 2 times, most recently from 3d05d4f to 70b3170 Compare July 4, 2026 15:19
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch 2 times, most recently from 0f19f3a to ad551c2 Compare July 4, 2026 15:34
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch 2 times, most recently from 5b3055a to 0edd0e6 Compare July 4, 2026 16:44
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch from ad551c2 to 59c273f Compare July 4, 2026 16:44
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch from 0edd0e6 to 280c0e8 Compare July 4, 2026 16:50
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch from 59c273f to 18326a2 Compare July 4, 2026 16:50
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch from 280c0e8 to 26f5599 Compare July 4, 2026 16:54
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch from 18326a2 to 4c8d170 Compare July 4, 2026 16:54
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch from 26f5599 to 8702174 Compare July 4, 2026 17:02
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch 2 times, most recently from 9a3dde3 to 4bc5370 Compare July 4, 2026 17:05
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch 2 times, most recently from 3d807f7 to 9f72d77 Compare July 4, 2026 17:09
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch 2 times, most recently from caaba82 to d2a52dc Compare July 5, 2026 10:51
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch from 9f72d77 to c740dbc Compare July 5, 2026 10:51
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch from c740dbc to a396a5d Compare July 5, 2026 10:58
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch from d2a52dc to 10128c7 Compare July 5, 2026 10:58
@febyeji
febyeji marked this pull request as draft July 5, 2026 15:15
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch from a396a5d to 87c427f Compare July 17, 2026 22:10
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch from 10128c7 to be9005c Compare July 17, 2026 22:12
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch from 87c427f to 2d46560 Compare July 17, 2026 23:43
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch from be9005c to ee1d5ba Compare July 17, 2026 23:44
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch from 2d46560 to f1c005d Compare August 10, 2026 23:21
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch from ee1d5ba to 31528ff Compare August 10, 2026 23:21
Comment thread cli/lib/isla/parser.mly Outdated
{ if name <> "default_tables" then
failwith ("unsupported page-table option: " ^ name);
if value then
failwith "unsupported page-table option: default_tables = true";

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.

We support true, we don't support false

@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch from 31528ff to 6e8417b Compare August 20, 2026 00:23
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch 2 times, most recently from 4831e13 to 5f190cb Compare August 20, 2026 01:46
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch from 6e8417b to 7826f93 Compare August 20, 2026 01:46
- Parse aligned virtual declarations in page_table_setup.
- Treat explicit mapping levels as alignment requests for VA and PA symbols.
- Apply VA alignment before assembly layout and PA alignment during page-table construction.
- Cover the level-2 VA/PA shorthand with a VM fixture.
- Parse named s1table/s2table roots with explicit bases.
- Keep explicit roots reserved while building page tables.
- Cover switching between named roots with a VM smoke test.
- Parse option default_tables = true statements in page_table_setup.
- Preserve Isla compatibility while keeping the option as a builder no-op.
- Reject default_tables = false and unsupported page-table option names.
- Cover accepted and rejected values with parser unit tests.
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch from 5f190cb to 79ee163 Compare August 20, 2026 03:31
@febyeji
febyeji force-pushed the feature/pgt-dsl-default-tables-option branch from 7826f93 to 05e0888 Compare August 20, 2026 03:31
@febyeji
febyeji force-pushed the feature/pgt-dsl-named-tables branch 2 times, most recently from 41c4ea0 to 076706d Compare August 20, 2026 07:14
@febyeji febyeji closed this Aug 28, 2026
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