Skip to content

Commit

Permalink
arm-hyp abstract/design: object_type enum reorder
Browse files Browse the repository at this point in the history
Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
  • Loading branch information
lsf37 committed Aug 11, 2023
1 parent 7f490df commit 8ba1b46
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions spec/abstract/ARM_HYP/ArchDecode_A.thy
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,12 @@ where
definition
arch_data_to_obj_type :: "nat \<Rightarrow> aobject_type option" where
"arch_data_to_obj_type n \<equiv>
if n = 0 then Some SmallPageObj
else if n = 1 then Some LargePageObj
else if n = 2 then Some SectionObj
else if n = 3 then Some SuperSectionObj
else if n = 4 then Some PageTableObj
else if n = 5 then Some PageDirectoryObj
if n = 0 then Some PageDirectoryObj
else if n = 1 then Some SmallPageObj
else if n = 2 then Some LargePageObj
else if n = 3 then Some SectionObj
else if n = 4 then Some SuperSectionObj
else if n = 5 then Some PageTableObj
else if n = 6 then Some VCPUObj
else None"

Expand Down
4 changes: 2 additions & 2 deletions spec/design/skel/ARM_HYP/ArchTypes_H.thy
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ interpretation Arch .
definition
enum_object_type: "enum_class.enum \<equiv>
map APIObjectType (enum_class.enum :: apiobject_type list) @
[SmallPageObject,
[PageDirectoryObject,
SmallPageObject,
LargePageObject,
SectionObject,
SuperSectionObject,
PageTableObject,
PageDirectoryObject,
VCPUObject
]"

Expand Down

0 comments on commit 8ba1b46

Please sign in to comment.