Access the |X86ISA|::|PCD| field of a cr3bits bit structure.
Function:
(defun cr3bits->pcd$inline (x) (declare (xargs :guard (cr3bits-p x))) (mbe :logic (let ((x (cr3bits-fix x))) (part-select x :low 4 :width 1)) :exec (the (unsigned-byte 1) (logand (the (unsigned-byte 1) 1) (the (unsigned-byte 60) (ash (the (unsigned-byte 64) x) -4))))))
Theorem:
(defthm bitp-of-cr3bits->pcd (b* ((pcd (cr3bits->pcd$inline x))) (bitp pcd)) :rule-classes :rewrite)
Theorem:
(defthm cr3bits->pcd$inline-of-cr3bits-fix-x (equal (cr3bits->pcd$inline (cr3bits-fix x)) (cr3bits->pcd$inline x)))
Theorem:
(defthm cr3bits->pcd$inline-cr3bits-equiv-congruence-on-x (implies (cr3bits-equiv x x-equiv) (equal (cr3bits->pcd$inline x) (cr3bits->pcd$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm cr3bits->pcd-of-cr3bits (equal (cr3bits->pcd (cr3bits res1 pwt pcd res2 pdb res3)) (bfix pcd)))
Theorem:
(defthm cr3bits->pcd-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x cr3bits-equiv-under-mask) (cr3bits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 16) 0)) (equal (cr3bits->pcd x) (cr3bits->pcd y))))