Access the |X86ISA|::|DPL| field of a call-gate-descriptorbits bit structure.
(call-gate-descriptorbits->dpl x) → dpl
Function:
(defun call-gate-descriptorbits->dpl$inline (x) (declare (xargs :guard (call-gate-descriptorbits-p x))) (mbe :logic (let ((x (call-gate-descriptorbits-fix x))) (part-select x :low 45 :width 2)) :exec (the (unsigned-byte 2) (logand (the (unsigned-byte 2) 3) (the (unsigned-byte 83) (ash (the (unsigned-byte 128) x) -45))))))
Theorem:
(defthm 2bits-p-of-call-gate-descriptorbits->dpl (b* ((dpl (call-gate-descriptorbits->dpl$inline x))) (2bits-p dpl)) :rule-classes :rewrite)
Theorem:
(defthm call-gate-descriptorbits->dpl$inline-of-call-gate-descriptorbits-fix-x (equal (call-gate-descriptorbits->dpl$inline (call-gate-descriptorbits-fix x)) (call-gate-descriptorbits->dpl$inline x)))
Theorem:
(defthm call-gate-descriptorbits->dpl$inline-call-gate-descriptorbits-equiv-congruence-on-x (implies (call-gate-descriptorbits-equiv x x-equiv) (equal (call-gate-descriptorbits->dpl$inline x) (call-gate-descriptorbits->dpl$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm call-gate-descriptorbits->dpl-of-call-gate-descriptorbits (equal (call-gate-descriptorbits->dpl (call-gate-descriptorbits offset15-0 selector res1 type s dpl p offset31-16 offset63-32 res2 all-zeroes? res3)) (2bits-fix dpl)))
Theorem:
(defthm call-gate-descriptorbits->dpl-of-write-with-mask (implies (and (fty::bitstruct-read-over-write-hyps x call-gate-descriptorbits-equiv-under-mask) (call-gate-descriptorbits-equiv-under-mask x y fty::mask) (equal (logand (lognot fty::mask) 105553116266496) 0)) (equal (call-gate-descriptorbits->dpl x) (call-gate-descriptorbits->dpl y))))