Skip to content

Commit

Permalink
arm-hyp crefine: update for Exynos5
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Lewis <corey.lewis@unsw.edu.au>
  • Loading branch information
corlewis authored and seL4-ci committed Jun 20, 2024
1 parent 8329132 commit 863f4aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion proof/crefine/ARM_HYP/StateRelation_C.thy
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ fun
| "irqstate_to_C irqstate.IRQReserved = scast Kernel_C.IRQReserved"

definition
cinterrupt_relation :: "interrupt_state \<Rightarrow> 'a ptr \<Rightarrow> (word32[192]) \<Rightarrow> bool"
cinterrupt_relation :: "interrupt_state \<Rightarrow> 'a ptr \<Rightarrow> (word32[255]) \<Rightarrow> bool"
where
"cinterrupt_relation airqs cnode cirqs \<equiv>
cnode = Ptr (intStateIRQNode airqs) \<and>
Expand Down
2 changes: 1 addition & 1 deletion proof/crefine/ARM_HYP/Syscall_C.thy
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ lemma ucast_maxIRQ_is_less:
"SCAST(32 signed \<rightarrow> 32) Kernel_C.maxIRQ < UCAST(10 \<rightarrow> 32) irq \<Longrightarrow> scast Kernel_C.maxIRQ < irq"
apply (clarsimp simp: scast_def Kernel_C.maxIRQ_def)
apply (subgoal_tac "LENGTH(10) \<le> LENGTH(32)")
apply (drule less_ucast_ucast_less[where x= "0xBF" and y="irq"])
apply (drule less_ucast_ucast_less[where x= "0xFE" and y="irq"])
by (simp)+

lemma validIRQcastingLess:
Expand Down
2 changes: 1 addition & 1 deletion proof/crefine/ARM_HYP/VSpace_C.thy
Original file line number Diff line number Diff line change
Expand Up @@ -1851,7 +1851,7 @@ lemma isIRQActive_ccorres:
(isIRQActive irq) (Call isIRQActive_'proc)"
apply (cinit lift: irq_')
apply (simp add: getIRQState_def getInterruptState_def)
apply (rule_tac P="irq \<le> ucast Kernel_C.maxIRQ \<and> unat irq < (192::nat)" in ccorres_gen_asm)
apply (rule_tac P="irq \<le> ucast Kernel_C.maxIRQ \<and> unat irq < (255::nat)" in ccorres_gen_asm)
apply (rule ccorres_from_vcg_throws[where P=\<top> and P'=UNIV])
apply (rule allI, rule conseqPre, vcg)
apply (clarsimp simp: simpler_gets_def word_sless_msb_less maxIRQ_def
Expand Down

0 comments on commit 863f4aa

Please sign in to comment.