| 1143 | } |
| 1144 | |
| 1145 | void CPU::verr(U32 selector) { |
| 1146 | this->fillFlags(); |
| 1147 | if (selector == 0) { |
| 1148 | this->removeZF(); |
| 1149 | return; |
| 1150 | } |
| 1151 | U32 index = selector >> 3; |
| 1152 | struct user_desc* ldt = this->thread->getLDT(index); |
| 1153 | |
| 1154 | if (!ldt || ldt->seg_not_present) { |
| 1155 | this->removeZF(); |
| 1156 | } else { |
| 1157 | this->addZF(); |
| 1158 | } |
| 1159 | } |
| 1160 | |
| 1161 | void CPU::verw(U32 selector) { |
| 1162 | this->fillFlags(); |
no test coverage detected