arm-hyp haskell: correct range_check fix for decodeVCPUInjectIRQ
This commit is contained in:
parent
2ed26c2c00
commit
8ca5198a7e
|
@ -232,7 +232,10 @@ FIXME ARMHYP: this does not at this instance correspond to exactly what the C
|
|||
> rangeCheck grp (0::Int) 1
|
||||
> gic_vcpu_num_list_regs <- withoutFailure $
|
||||
> gets (armKSGICVCPUNumListRegs . ksArchState)
|
||||
> rangeCheck index 0 (gic_vcpu_num_list_regs - 1)
|
||||
>
|
||||
> when (index >= fromIntegral gic_vcpu_num_list_regs) $
|
||||
> (throw $ RangeError 0 (fromIntegral gic_vcpu_num_list_regs - 1))
|
||||
>
|
||||
> vcpuLR <- withoutFailure $ liftM (vgicLR . vcpuVGIC) $ getObject vcpuPtr
|
||||
>
|
||||
> when (vcpuLR ! (fromIntegral index) .&. vgicIRQMask == vgicIRQActive) $
|
||||
|
|
Loading…
Reference in New Issue